Good point Derek, I saw it in angular.js file when I test the slice (that at least work), as you say it is a cleaner approach...
:) Richard On Tue, Feb 18, 2014 at 4:01 PM, Derek <sp1d...@gmail.com> wrote: > no, no, no, do not use that slice, it's a waste of time to edit the > angular.js file itself. you want to do that every time a new version is > released? also why not just use a cdn for angular.js? > > http://docs.angularjs.org/api/ng/provider/$interpolateProvider#startSymbol > The above link shows how to do it properly. > > Here's a snippet from their 'sample' code... > > var customInterpolationApp = angular.module('customInterpolationApp', > []); > customInterpolationApp.config(function($interpolateProvider) { > $interpolateProvider.startSymbol('//'); > $interpolateProvider.endSymbol('//'); > > That changes the start and end symbols to '//' but you could just as > easily change them to '[[' and ']]' or '||' and '||' or whatever you want. > > On Tuesday, February 18, 2014 1:19:14 PM UTC-7, Richard wrote: > >> http://www.web2pyslices.com/slice/show/1922/web2py-angularjs >> >> Change angular {{ }} for {! !} >> >> Having to type to different character bug me though, but you need a >> closing tag... >> >> :( >> >> Richard >> >> >> On Tue, Feb 18, 2014 at 3:05 PM, Derek <sp1...@gmail.com> wrote: >> >>> and to note you can change the brackets in angular to use something >>> else... >>> >>> see here: >>> >>> http://docs.angularjs.org/api/ng/service/$interpolate >>> >>> by default it uses {{ and }} as starting and ending brackets. >>> >>> >>> On Tuesday, February 18, 2014 12:59:48 PM UTC-7, Derek wrote: >>>> >>>> Well, the problem you have is that if you put angular tags in your >>>> views, they will be parsed with the template parser of web2py and error. >>>> The way to avoid that is to use the angular classes instead. For example, >>>> all the 'ng-app' and 'ng-controller' and 'ng-repeat' attributes ( >>>> http://docs.angularjs.org/tutorial/step_02). Keep in mind that the >>>> python template language will get parsed first, and only after that will >>>> the angular template parser be used. >>>> >>>> On Tuesday, February 18, 2014 12:49:42 PM UTC-7, Arvind Gupta wrote: >>>>> >>>>> Can we use angular.js with web2py, if yes can u point me to >>>>> appropriate resources? >>>>> >>>> -- >>> Resources: >>> - http://web2py.com >>> - http://web2py.com/book (Documentation) >>> - http://github.com/web2py/web2py (Source code) >>> - https://code.google.com/p/web2py/issues/list (Report Issues) >>> --- >>> You received this message because you are subscribed to the Google >>> Groups "web2py-users" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to web2py+un...@googlegroups.com. >>> >>> For more options, visit https://groups.google.com/groups/opt_out. >>> >> >> -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > - http://github.com/web2py/web2py (Source code) > - https://code.google.com/p/web2py/issues/list (Report Issues) > --- > You received this message because you are subscribed to the Google Groups > "web2py-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to web2py+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.