Diego VIlar
Member since Jun 19, 2013
- Profile: /members/10997-diego-vilar.htm
- Comments: 5
Recent Blog Comments By Diego VIlar
-
Creating Asynchronous Alerts, Prompts, And Confirms In AngularJS
Posted on May 23, 2014 at 5:52 PM
Well.. ACTUALLY Willem has a point. I've read it quickly and did not notice native, blocking, dialog functions were called synchronously by the custom alert and dialog services. I guess I just assumed your solution was similar to mine (I used custom, non blocking UI components). Anyways, yeah, Wil... read more »
-
Creating Asynchronous Alerts, Prompts, And Confirms In AngularJS
Posted on May 23, 2014 at 5:32 PM
@Ben I used a similar approach in a project at work. The site is architectured as a single page application, with many routes. One thing that you should account for when using promises (or whatever async solution) in single page applications is that, by the time the promise is solved or rejected an... read more »
-
Creating Asynchronous Alerts, Prompts, And Confirms In AngularJS
Posted on May 23, 2014 at 5:14 PM
@Willem, I don't think the point is to be async just to be async, but to be non-blocking when you don't need to block or when there is tangible benefit by not blocking (which is almost always the case with UI programming). What would be the real gain of invoking the custom alert function asynchrono... read more »
-
Defining Instantiatable Classes In The AngularJS Dependency Injection Framework
Posted on Oct 6, 2013 at 2:58 PM
@Aaron, http://docs.angularjs.org/guide/directive "Directives have camel cased names such as ngBind. The directive can be invoked by translating the camel case name into snake case with these special characters :, -, or _. Optionally the directive can be prefixed with x-, or data- to make ... read more »
-
Working With Inherited Collections In AngularJS
Posted on Jun 19, 2013 at 9:52 PM
I recognize the applicability of your solution, and how easy it makes to share data across multiple views or even "submodules" of rather simple application. But it seems to me that it creates a relationship between sub-parts of the application tighter than it should. Perhaps sharing infor... read more »