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