Clark Pan
Member since Jul 9, 2013
- Profile: /members/11056-clark-pan.htm
- Comments: 4
Recent Blog Comments By Clark Pan
-
Stateless Filters Don't Apply To Objects, Arrays, or ngRepeat In AngularJS 1.3
Posted on Jan 20, 2015 at 7:53 PM
@Ben, Yep i ran exactly that after i finished my transit to work. Sorry for not posting back here. Your analysis is definitely correct. But sigh, unfortunate that article now ranks 5th for a google search of 'stateful filters angularjs', which means people will now use that as information. I'll p... read more »
-
Stateless Filters Don't Apply To Objects, Arrays, or ngRepeat In AngularJS 1.3
Posted on Jan 20, 2015 at 4:38 PM
Interesting, but you seemed to have come to a completely different result to this article: http://www.launchcode5.com/blogs/tech/2014/rethinking-filter-use-in-angularjs/... read more »
-
What A Select $watch() Teaches Me About ngModel And AngularJS
Posted on Jul 10, 2013 at 9:31 AM
@Ben The controller for the select directive isn't documented anywhere afaik but you can see the implementation of it here (lines 136-191): https://github.com/angular/angular.js/blob/master/src/ng/directive/select.js You can see how it's used in the options directive a bit further below (althou... read more »
-
What A Select $watch() Teaches Me About ngModel And AngularJS
Posted on Jul 9, 2013 at 8:25 PM
While creating an abstraction layer between your view-model binding will definitely solve the problem, i feel like it isn't the 'angular' way of doing things. I think the default ng-options directive is more than sufficient in most cases, and for case that it isn't sufficient, you can create your o... read more »