Provides Ember route for portfolio view.
- Source:
Extends
- Ember.Route
Methods
(inner) afterModel() → {Promise}
Promise-aware Ember route lifecycle hook that initiates portfolio image
caching (for quick loading) after PortfolioEntryRecords are loaded
from the data store.
- Source:
Returns:
Resolves to an array of loaded portfolio images
- Type
- Promise
(inner) model() → {Promise}
Fetches PortfolioEntryRecords from the data store.
- Source:
Returns:
Resolves to an array of PortfolioEntryRecords
- Type
- Promise
(inner) preloadImages() → {Promise}
Preloads portfolio images.
- Source:
Returns:
Resolves to an array of loaded portfolio images
- Type
- Promise
(inner) setupController(controller, model)
Assigns model to controller as portfolioEntries
Parameters:
| Name | Type | Description |
|---|---|---|
controller |
Ember.Controller | |
model |
ArrayProxy | Resolved portfolio entries collection |
- Source: