Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2016-11-29
2
Medium Priority
?
36 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
ID: 41906744
It was the href links.  I just download them and replaced the references.
0
 

Author Closing Comment

by:ITMikeK
ID: 41906745
0 views and 0 comments after 4 hours.  Hmmmm.
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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.
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Integration Management Part 2
Suggested Courses

971 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