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

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -