Got help for this from the IRC chat... turns out that now everything needs 
to be bound to a module.  Here is the code that works:

http://plnkr.co/edit/oD7xGFDS4pSkH9pzGObp

On Friday, June 5, 2015 at 2:53:04 PM UTC+5:45, Chase Yarbrough wrote:
>
> Hi All,
>
> I'm trying to implement a basic angular app, and I can't get it working.
>
> index.html:
>
> <!doctype html><html ng-app> <head> <script src="angular/angular.js 
> <https://bahmni.training/angular_sandbox/angular/angular.js>"></script> 
> <script 
> src="todo.js <https://bahmni.training/angular_sandbox/todo.js>"></script> 
> </head> <body> {{1+2}} <div ng-controller="TodoCtrl"> {{1+3}} </div> 
> </body></html>
> todo.js:
> function TodoCtrl($scope) {
>     $scope.totalTodos = 4;
> }
>
> This code yields the following output:
>
> 3
> {{1+3}}
>
> Where I would have expected
>
> 3
> 4
>
> For some reason, it's interpreting the first set of brackets correctly but 
> not the second.  Help??
>
> Thanks
>

-- 
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