Subscribe

Archive | RequireJS

Enhancing AngularJS Logging using Decorators

AngularJS Logging with Color and $Log

Let’s explore how to use Decorators to enhance AngularJS logging and supercharge the $log service. AngularJS has a great hidden feature $provider.decorator() that allows developers to intercept services and substitute, monitor, or modify features of those intercepted services. The decorator feature is not deliberately hidden… rather it is masked by so many other great AngularJS […]

Dependency Injection using RequireJS & AngularJS

How is RequireJS dependency injection (DI) used with AngularJS DI? Developers use RequireJS to asynchronously load Javascript and establish package/import dependencies. And the AngularJS MVC framework is used to architect HTML5 SPAs (single-page applications) using dependency injection (DI) and databindings. Developers working on non-trivial HTMl5 applications quickly realize the importance of using RequireJS with AngularJS. […]