This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module components { | |
| export class DomainCard { | |
| public data: bo.UserManager.IDomainDetails; | |
| public menuItems: bo.UserManager.IMenuItems; | |
| /* @ngInject */ | |
| constructor() { | |
| this.setupMenu(); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $stateProvider | |
| .state('alert', { | |
| url: 'alerts/:alertId', | |
| data: { | |
| title: 'Alert' | |
| }, | |
| templateProvider: function($stateParams, $templateFactory, AlertsConfig, Alerts) { | |
| return Alerts.getAlert($stateParams.alertId).then(alert => { | |
| var category = Alerts.getCategoryTemplate(alert); // mapping category names to template names, returns an empty string as default | |
| return $templateFactory.fromUrl(AlertsConfig.paths.views + 'state.alert' + (category ? '.' + category : '') + '.html'); |