Mortimer Porte
Member since Nov 5, 2012
- Profile: /members/10412-mortimer-porte.htm
- Comments: 3
Recent Blog Comments By Mortimer Porte
-
Setting Prototype Properties Using Inherited Scope Methods In AngularJS
Posted on Nov 5, 2012 at 1:07 PM
Ok, it's almost starting to be spam ;) Obviously I wasn't well awake when I read your posts. this within the function does refer to $scope as this is where the function is called. They are thus the same. However, wouldn't it be clearer to always use $scope ( this is a... read more »
-
Setting Prototype Properties Using Inherited Scope Methods In AngularJS
Posted on Nov 5, 2012 at 7:35 AM
ok, me again (sorry for the wrong formatting in the previous post). I see that in your next post, you have a mix of $scope and this to access the inherited methods, so I guess they are equivalent? Is there a logic to use one against the other?... read more »
-
Setting Prototype Properties Using Inherited Scope Methods In AngularJS
Posted on Nov 5, 2012 at 7:31 AM
Hi, first of all, I love your blog, loads of great stuff about angularjs ;) Now, I had a question about this inheritance, it's unclear to me what inherits the scope prototype, is it the $scope</scope> object or the controller's function? From what you say, I understand that it's the &... read more »