Hi, thanks for the quick response but I'm not using jinja2, only HTML pages pointing to AngularJS library and deployed in Google App Engine.
El lunes, 16 de septiembre de 2013 02:38:23 UTC-5, mooose escribió: > > It depends how you generate your template, where you put the AngularJS > code in it. > As jinja and AngularJS use the same syntax for template variables, you > have to take some actions. > > 1. don't use jinja2 for the template generation or > 2. redine jinja2's syntax. > > I used something like this, to redefine jinja's variable start/end > strings. Check out the jinja2 docs how to do this in your environment. > > # jinja2 templates > 'webapp2_extras.jinja2' : {'template_path': > ['templates','boilerplate/templates', 'admin/templates'], > 'environment_args': { > 'extensions': ['jinja2.ext.i18n'], > 'variable_start_string': '((', > 'variable_end_string': '))'}}, > > > > On Mon, Sep 16, 2013 at 4:32 AM, Nelson Paz y Miño > <npaz...@gmail.com<javascript:> > > 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-appengi...@googlegroups.com <javascript:>. >> To post to this group, send email to >> google-a...@googlegroups.com<javascript:> >> . >> Visit this group at http://groups.google.com/group/google-appengine. >> For more options, visit https://groups.google.com/groups/opt_out. >> > > > > -- > Siegfried Hirsch > hhS - Lipowskystr. 16 - 81373 München - (089) 5484 3564 - skype:shirsch > Fax +49 - (0)89 - 943 992 698 - http://siegfriedhirsch.blogspot.com > -- 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.