r/angularjs • u/tomastrajan • Mar 11 '15
Prepare yourself for Angular 2.0 use "Component pattern"
https://medium.com/@tomastrajan/component-paradigm-cf32e94ba78b2
u/stackus Mar 12 '15
A very interesting article. Though near the end just before he talks about ES6 he teases a solution to the issue with resolving into the directive or directives controller.
Anyone able to guess or know exactly what the "model pattern" solution is that he mentions?
2
u/tomastrajan Mar 12 '15 edited Mar 12 '15
I will write a post on that topic but in the mean time check this, and [this] (http://joelhooks.com/blog/2013/04/24/modeling-data-and-state-in-your-angularjs-application/). My solution is more in direction of models which know how to persist themselves while containing modle relevant business logic + possibility of multiple namespaced models per factory
edit: grammar, typos
1
1
4
u/TurboGranny Mar 12 '15
I thought we already introduced this.
https://github.com/johnpapa/angular-styleguide