Pavlos Polianidis
Member since Dec 15, 2014
- Profile: /members/12464-pavlos-polianidis.htm
- Comments: 5
Recent Blog Comments By Pavlos Polianidis
-
CAUTION: Overloading The ng-Controller Directive In AngularJS
Posted on Apr 10, 2015 at 4:48 AM
Great article once again. I don't think there is anyone out there experimenting with angular like you do. Keep on going!... read more »
-
Replacing ngInclude With Component Directives In AngularJS
Posted on Dec 18, 2014 at 4:25 AM
@Ben, Cheers!... read more »
-
Replacing ngInclude With Component Directives In AngularJS
Posted on Dec 17, 2014 at 9:47 AM
@Ben, Sorry Ben, I think I didn't make myself clear. I totally agree with you about having multiple files, and in fact I always do it this way. I'm worried more about how the controller function is defined component.controller.js file. I mean, do you register it using module.controller()? I pers... read more »
-
Replacing ngInclude With Component Directives In AngularJS
Posted on Dec 16, 2014 at 4:53 AM
@Ben I believe that encapsulating controllers within directives is an approach that will make transition to future versions of angular (and future specs i.e. web components) less painful. Considering that web components is upon us, and that angular 2.0 will deprecate controllers and scope, it's saf... read more »
-
Replacing ngInclude With Component Directives In AngularJS
Posted on Dec 15, 2014 at 4:59 AM
Hi Ben, Nice post (as always). I've been using this approach for quite while, and it seems to work fine for me. I've got a question, though; In your primaryLayout directive you're pointing to PrimaryLayoutController which I suppose you are registering in primary-layout.controller.js file. Why don'... read more »