Services & Dependency Inection
Services are Ember's primary tool for sharing state and behavior across many concerns in an application. We'll build a service for authentication state, and demonstrate how we can use Ember's dependency injection system to safely "stub" it in tests.
-
Services & Dependency InectionServices
Services are Ember's primary tool for sharing state and behavior across many concerns in an application. We'll create one for holding and dealing with authentication state, and hook it up to our login form using Ember's dependency injection utilities.
-
Services & Dependency InectionStubbing Services in Tests
We'll learn a little more about Ember's dependency injection system, and then apply our knowledge by setting up each of our integration tests with a "stub" service that doesn't leak state across tests via localStorage.
-
Services & Dependency InectionLunch
Break for lunch