javascript - Angular js not displaying test -
i following tutorial on angular js, test isn't rendering it's suppose on page. should render "hello you"
, still appearing {{"hello " + "you"}}
. new angular , appreciated.
here html:
<!doctype html> <html ng-app="store"> <head> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" /> </head> <body> <script type="text/javascript" src="angular.min.js" ></script> <script type="text/javascript" src="app.js" > </script> <p>{{"hello " + "you"}}</p> </body> </html>
the app.js file:
var app = angular.module('store',[]);
and folder structure:
root: app.js angular.min.js shop.html
you have typo in script tags. misspelled src
attribute.
below should work:
<script type="text/javascript" src="angular.min.js"></script> <script type="text/javascript" src="app.js"></script>
Comments
Post a Comment