Hey guys,

We are just about to start a new project and while doing some research in 
order to refresh our best practices and coding standards we tested using 
nested functions vs. using the plain old javascript prototype.
After testing, using the prototype approach to defining controllers, 
services and directives as shown here 
<http://blog.mgechev.com/2013/12/18/inheritance-services-controllers-in-angularjs/>
 
and here 
<http://www.mircozeiss.com/a-radical-new-approach-to-developing-angularjs-apps/>
 
could be 16 - 35 % faster considering this 
<http://jsperf.com/prototype-vs-nested-fucntion>jsPerf example.

Now our question is what would speak for and against using the prototype 
approach with angular.

Thanks,
Stefan

-- 
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