Solved

Why is this code literally rendering whatever is typed between the <h1> tag?

Posted on 2016-11-29
2
10 Views
Last Modified: 2016-11-29
Starting out with AngularJS.  Following an example and not getting intended result.  The code below should render a text, value or expression result for anything typed between the {{ }} int the <h1> tag.  While in debug mode using WebStorm, whatever is there literally renders.  In the example below, I get {{ 1+3 }} displaying instead of 4.  A text value  : {{'Anything I just typed'}} , looks like this  {{'Anything I just typed'}}  What's missing?  Is it my environment settings?  BTW, the 'libs' folder is located one folder higher than my project code, so I assume the href links are working.   Thanks!

<!DOCTYPE html >
<html lang="en" ng-app  >
<head >
	<title >Data Binding</title >
	<link href="../libs/bootstrap/dist/css/bootstrap.min.css"
	      rel="stylesheet" >
	<link href="main.css"
	      rel="stylesheet" >
</head >

<body >

<div class="container">
	<h1>{{1+3}}</h1>
</div >

<script src="../libs/angular/angular.min.js" ></script >
</body >
</html >

Open in new window

0
Comment
Question by:ITMikeK
  • 2
2 Comments
 

Accepted Solution

by:
ITMikeK earned 0 total points
Comment Utility
It was the href links.  I just download them and replaced the references.
0
 

Author Closing Comment

by:ITMikeK
Comment Utility
0 views and 0 comments after 4 hours.  Hmmmm.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction JSON is an acronym for JavaScript Object Notation.  It is a text-string data transport mechanism, capable of representing simple or complex data structures in a consistent and easy-to-read manner.  Similar in concept to XML, but more e…
You have this traditional web application that refreshes the whole page each time you navigate and you think it's a good time to convert it to a Single-Page approach. What should you know in advance? Read on, I'll guide you through it.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now