The notification feature allows the system to show some inportant information to users.
const notification = {
// Currently, we only support 'info' tag.
category: 'info',
item: {
// The name MUST be a key for i18n json.
name: 'NOTIFICATIONS_CHANGE_PASSWORD',
// The url should be a name of angularJS ui-router.
url: 'accounts/'
}
};
// Notice!!: You should inject $ngRedux and navbarAction before you copy the code below.
$ngRedux.dispatch(this.navbarAction.updateNotifications(nitification));
// Notice!!: You should inject $ngRedux and navbarAction before you copy the code below.
$ngRedux.dispatch(this.navbarAction.removeMotifications(nitification));
// Notice!!: You should inject $ngRedux and navbarAction before you copy the code below.
$ngRedux.dispatch(this.navbarAction.updateNavbarStatus({ config: { isShowNotification: true } }));