Atticus White
Member since Nov 4, 2014
- Profile: /members/12398-atticus-white.htm
- URL: http://atticuswhite.com
- Comments: 10
Recent Blog Comments By Atticus White
-
Logging Client-Side Errors With AngularJS And Stacktrace.js
Posted on Apr 21, 2015 at 10:33 AM
Ben -- we're currently discussing client side logging solutions. Is this the best approach you've come across? We're thinking of adopting this idea and adding in some approaches to prevent abuse, but also wondering about existing third party integrations that may provide as an existing solution.... read more »
-
CAUTION: Overloading The ng-Controller Directive In AngularJS
Posted on Apr 8, 2015 at 10:13 AM
Nice experiment... read more »
-
Logging Client-Side Errors With AngularJS And Stacktrace.js
Posted on Feb 22, 2015 at 12:26 AM
I'm assuming there's really no way to prevent abuse/unintended POSTs to the logging endpoint? I suppose CSRF could be used to atleast lock it down a little bit more... read more »
-
Binding A Directive To Multiple Compilation And Linking Functions In AngularJS
Posted on Dec 19, 2014 at 9:37 AM
So what happens here if we create an isolate scope on two different implementations of the same directive? Are they sharing the same scope then? Or does angular explode? If we create multiple implementations of the same directive, what are properties that we want to avoid? I'm assuming, for things ... read more »
-
Exposing A Service Directly On The $scope In AngularJS
Posted on Dec 18, 2014 at 10:57 AM
Another question, why doesn't `$scope.windowTitleValue = WindowTitle.title` work? I "know" it doesn't work, but I don't "know" why it doesn't work. Is it because a `$scope.property = "something"` is monitored for changes in reference, and $scope.property = somethingE... read more »
-
Exposing A Service Directly On The $scope In AngularJS
Posted on Dec 18, 2014 at 10:53 AM
Honestly.. if I heard "hey, so we're going to put the service on the scope" I'd panic a little and have an instant urge to fight that decision.. But the more I think about it.. The window title is a great example, and there's many more like it. If you're going to have to do the same thing... read more »
-
Don't Blindly Isolate All The Scopes In AngularJS Directives
Posted on Dec 3, 2014 at 11:31 PM
Follow up -- When an isolated scope is created, is this just doing scope.$new() on the existing (now the new parent) scope?... read more »
-
Don't Blindly Isolate All The Scopes In AngularJS Directives
Posted on Dec 3, 2014 at 11:28 PM
Great tip. As I learn more and more about the inner parts of angular (and glad you mentioned looking at core directives, you learn a lot from reading the core files) these points start to come into play when creating directives. Originally, I would blindly isolate my directive scopes. However now, e... read more »
-
Implementing Controller-As Using A Directive In AngularJS 1.0.8
Posted on Nov 4, 2014 at 8:59 AM
I think I would prefer binding to "this" instead of scope, just for JS semantics vs Angular semantics. However, it also kind of makes sense to use a separate object ($scope) as the View-Model, rather than treating the entire controller as a View-Model itself -- seems like merging responsib... read more »