Re: [web2py] Re: Angular.js And other js lib

2014-02-21 Thread António Ramos
Other frameworks (rails, django) are being coupled with angular too so web2py should not loose time. I think angular is the way to go client side. It really teaches html new tricks as they say. Directives, filters, ng animate and all other stuff really moves your apps to the next level of user ex

Re: [web2py] Re: Angular.js And other js lib

2014-02-20 Thread Richard Vézina
I already like web3py... I found myself scratching my head more and more as I build complexe form, and the more I learn about Angular.js the more my problem seems fade away, though it seems to me that I will have to write more code than with web2py. Data binding is great, but it make field validati

Re: [web2py] Re: Angular.js And other js lib

2014-02-19 Thread Massimo Di Pierro
I am learning Angular.js and the more I read about it the more I love it. Yet I think Angular.js is not web2py but Angular.js may be for web3py (or however we call it). Web2py has a design which is MVC and the V(iews) are created serverside using a template language. Angular is not a replacemen

Re: [web2py] Re: Angular.js And other js lib

2014-02-19 Thread Richard Vézina
http://stackoverflow.com/questions/18414012/why-use-angularjs-instead-of-jquery http://stackoverflow.com/questions/13151725/how-is-angular-js-different-from-jquery http://stackoverflow.com/questions/14994391/how-do-i-think-in-angularjs-if-i-have-a-jquery-background Richard On Wed, Feb 19, 2014

Re: [web2py] Re: Angular.js And other js lib

2014-02-19 Thread Richard Vézina
jQuery vs Angular you can't make that kind of simple comparaison they both design for solving different kind of problem. jQuery is good as manipulating DOM element. Angular is design to make very easy the development of SPA... Richard On Wed, Feb 19, 2014 at 10:46 AM, Arvind Gupta wrote: > Ther

Re: [web2py] Re: Angular.js And other js lib

2014-02-19 Thread Arvind Gupta
There is enough buzz around Angular over net, I haven't program web2py also. I have to choose django vs web2py for a personal project, I m evaluating my options, Which is easy to get started, Angular or Jquery? -arvind On Wed, Feb 19, 2014 at 7:53 PM, Richard Vézina wrote: > Your question is v

Re: [web2py] Re: Angular.js And other js lib

2014-02-19 Thread Richard Vézina
Your question is vague... I suggest you to listen a couple of video on youtube about Angular.js... There is many talk about what the limitation you face using Angular.js and jQuery for instance, since Angular.js use a different paradigm at generating dom instead of manipulating it. So there is thin

Re: [web2py] Re: Angular.js And other js lib

2014-02-18 Thread Arvind Gupta
@derek and @richard if we have to create generic support of other javascript libraries, what are the efforts one have to make? On Wed, Feb 19, 2014 at 2:48 AM, Richard Vézina wrote: > 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

Re: [web2py] Re: Angular.js And other js lib

2014-02-18 Thread Richard Vézina
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 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

Re: [web2py] Re: Angular.js And other js lib

2014-02-18 Thread Derek
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

Re: [web2py] Re: Angular.js And other js lib

2014-02-18 Thread Anthony
Note, you can also change the delimiters used in web2py templates by setting response.delimiters. Anthony On Tuesday, February 18, 2014 3:19:14 PM UTC-5, Richard wrote: > > http://www.web2pyslices.com/slice/show/1922/web2py-angularjs > > Change angular {{ }} for {! !} > > Having to type to diffe

Re: [web2py] Re: Angular.js And other js lib

2014-02-18 Thread Richard Vézina
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 wrote: > and to note you can change the brackets in angular to use

[web2py] Re: Angular.js And other js lib

2014-02-18 Thread Derek
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

[web2py] Re: Angular.js And other js lib

2014-02-18 Thread Derek
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.angu