
Explore advanced angularjs development with modular, testable directives and services, mastering scope, dependency injection, and cross-app messaging. Build configurable modules that load what you need and communicate beyond the DOM.
Access your working files for AngularJS by downloading, extracting, and saving them to your desktop. Open and organize these files from the player or disk for practice.
Explore dynamic templating in AngularJS directives by modifying templates with a type attribute, using isolate scope, and nesting directives to render object or array debug outputs.
Explore advanced scoping in AngularJS by passing functions to a directive, enabling one directive to handle multiple use cases via an object hash, supporting logger, console, and store behaviors.
Learn how directive controllers coordinate multiple nested directives within a top-level directive, exposing an API to register and remove elements, handling changes with an on change callback and update logic.
Explore how compile enables Angular to compile a template with a scope for debugging dynamic templates. Pass a template to compile and observe type Saray values changing output.
Learn to build custom inputs in AngularJS by creating a knob-driven directive that binds to the ngModel controller, parses input, and updates view and model via a data pipeline.
Understand values versus references in JavaScript for objects and arrays, and how by-reference changes stay linked while by-value changes break linkage.
Explore returning an object reference from a factory, extending its content with angular extend, and maintaining synchronized data across controllers and directives for easy testing with mocks.
Learn to manage asynchronicity with arrays using references instead of values, updating feed via a factory and controller. Use a cache and apply to add items, then splice to remove.
Leverage optional success and error callbacks in AngularJS factories to maintain modularity while handling asynchronous content updates with $timeout.
Explore models in Angular, and how they encapsulate data with properties and prototype methods. See how a user model handles id or data and connects to services and factories.
Initialize models by loading data with an id or applying a provided object, then update and return this for chaining while managing dynamic properties in Angular.
Learn how to compose models with collections in AngularJS by using a members factory that loads user objects from IDs, handles hydration, and updates arrays without reassigning references.
Learn basic caching in AngularJS factories by using an id-based cache that returns the same user instance through get or new, keeping controllers and directives tied to a single object.
Discover binding to update events inside services and factories using a publish-subscribe pattern, and target model events to avoid root scope spaghetti while updating user data.
Learn to implement a flexible subscription system in angularjs with on and trigger, using a dynamic callbacks map and argument handling for updating the dom.
Explore unsubscribing from events in AngularJS to prevent memory leaks by calling off at the right time. Bind or unbind callbacks using named events to control updates.
Build a full AngularJS messaging service with namespaces, on/off triggers, and a messaging fabric to share events and enforce access control across services.
Learn to use providers and injectors to create modular global settings in AngularJS, configured via a separate settings module in the config block and the $get injection.
Configure a global error handler with a settings provider and the Angular http provider, using a factory interceptor to route request and response errors and log details to the console.
Use an AngularJS provider to define a social messaging interface with set and get for configuration and a send/get API, stored in a configurable connector; controllers swap implementations via config.
Explore how to specify interfaces via the config block using $injector to lazily load factories and services, extending interfaces without updating controllers.
Explore how the AngularJS injector supports optional dependencies, allowing progressive enhancements without forcing extra modules, and conditionally loading a social connector via a settings module.
Learn how to use decorators to transform or replace AngularJS factories, filters, and directives by decorating with $provide and $delegate, extending functionality while preserving compatibility.
Learn how decorators extend AngularJS directives by decorating processed directive definitions, handling multiple directives with the same name, and using compile and post/link functions to augment behavior.
Explore how decorators simplify testing in AngularJS by stubbing dependencies, replacing asynchronous timeout with synchronous execution, and mocking services to keep unit tests focused on controllers.
Explore modular factory design and injection in AngularJS, exposing only needed API, coordinating controllers and app messaging, and boosting flexibility with templates, directives, and optional dependencies.
This Factories and Directives in AngularJS training course, will teach you how to make your services and directives more powerful, easily configurable, modular, and testable. This course is designed for users that already have programming experience, and are comfortable with JavaScript and Angular.
You will start by learning about directives, including dynamic templates, advanced scoping, and custom inputs. From there, Alex will show you how to create modular factories. This video tutorial also covers messaging and events and unleashing providers and $injector. Finally, you will learn how to modify services and directives, and make testing easier.
Once you have completed this computer based training course, you will be fully capable of using Angular to take your services and directives to the next level.