Try attaching the app module to the html tag instead of the head tag.
Your code will run fine then!

Op donderdag 7 augustus 2014 20:18:49 UTC+2 schreef Jonathan Price:
>
> Hi, I'm new to angular, and I'm trying to follow along with the tutorial 
> videos locally.  According to firebug, everything is loading without 
> errors, but my evaluations are just showing up as unmodified text.  They're 
> not evaluating.  I'm so new to this I'm not really sure where to look next?
>
> This is really all I have:
>
> index.cfm
>
> <!DOCTYPE html>
>
> <html>
> <head ng-app="store">
>     <link rel="stylesheet" type="text/css" 
> href="assets/css/bootstrap.min.css">
> </head>
> <body>
>     <script src="assets/js/angular.min.js"></script>
>     <script src="assets/js/app.js"></script>
>
> <div ng-controller="StoreController as store">
>     <h1>{{store.product.name}}</h1>
>     <p>${{store.product.price}}</p>
>     <p>{{store.product.description}}</p>
> </div>
>
> </body>
> </html>
>
> app.js:
>
> (function() {
>     var app = angular.module('store', []);
>     
>     app.controller('StoreController', function(){
>         this.product = gem;
>     });
>     
>     var gem = {
>         name: "My Gem",
>         price: "5.95",
>         description: "It's very pretty."
>     }
>     
> })();
>
>
> As a note, I'm also using coldfusion and fw/1 - but it's basically and 
> empty application at this point.  Bare minimums.
>
> Thanks for the help.  Sorry if this is an annoying question.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to