In defense of App Engine, these issues are all Angular related only. :)

This looks like a few different examples from my book spliced together 
maybe?

The first things I'd fix would be to:
1. Use v1.1.2.  You get better error messages.
2. Always use the non-minified version when debugging.  You get fully 
expanded errors without having to click on links and you can actually send 
links to source if you need to report bugs in Angular itself.
3. Move ng-app to the <body> tag.  As is, Angular will only try to manage 
the nodes between <div> and </div> as you have it specified now.

Please include the other two files if you'd like more suggestions.

Good luck!

On Sunday, September 15, 2013 7:32:32 PM UTC-7, Nelson Paz y Miño wrote:
>
>  Hello I'm trying to using the book "AngulaJS" of Green/Seshadri samples 
> to learn AngularJS, but apparently some directives like the ones 
> {{variable}} seems not to be working. Do I need something to set before 
> using AngularJS with Google App Engine. For example the following code for 
> the form is not working, the first part about the lists works correctly, 
> please help:
>
> <!DOCTYPE html>
> <head>
> <meta content="text/html;charset=utf-8" http-equiv="Content-Type">
> <meta content="utf-8" http-equiv="encoding">
>     <title>Learning AngularJS</title>
>     <script src="
> https://ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.min.js"; 
> type="text/javascript"></script>
>     <script src="app.js" type="text/javascript"></script>
>     <script src="maincontroller.js" type="text/javascript"></script>
>     <script type="text/javascript">function StartUpController($scope) {
> $scope.computeNeeded = function() {
> $scope.needed = $scope.startingEstimate * 10;
> };
> $scope.requestFunding = function() {
> window.alert("Sorry, please get more customers first.");
> };
> $scope.reset = function() {
>     $scope.startingEstimate = 10;
> };
> }</script>
> </head>
> <body>
>     <div id='content' ng-app='MyTutorialApp' 
> ng-controller='MainController'>
>         <select ng-model='selectedPerson' ng-options='obj.name for obj in 
> people'></select>
>         <select ng-model='selectedGenre'>
>             <option ng-repeat='label in 
> people[selectedPerson.id].music'>{{label}}</option>
>         </select>
>     </div>
>     
> <form ng-submit='requestFunding()' ng-controller='StartUpController'>
> Starting: <input ng-change='computeNeeded()' ng-model='startingEstimate'>
> Recommendation: {{needed}}
> <button>Fund my startup!</button>
> <button ng-click='reset()'>Reset</button>
> </form>
>
> </body>
> </html>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to