|
|
@@ -7,7 +7,7 @@ angular.module('appMessage').run(['$rootScope', '$state', '$stateParams',
|
|
|
function($stateProvider, $urlRouterProvider, $compileProvider) {
|
|
|
$compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|local):/);
|
|
|
$compileProvider.imgSrcSanitizationWhitelist(/^\s*(https?|local):/);
|
|
|
- $urlRouterProvider.otherwise('/smsSend'); //
|
|
|
+ $urlRouterProvider.otherwise('/historyMsg'); //
|
|
|
$stateProvider.state('messages', {
|
|
|
url: '/messages',
|
|
|
templateUrl: 'templates/messages.html',
|
|
|
@@ -27,6 +27,11 @@ angular.module('appMessage').run(['$rootScope', '$state', '$stateParams',
|
|
|
url: '/smsSend',
|
|
|
templateUrl: 'templates/smsSend.html',
|
|
|
controller: 'SmsController'
|
|
|
+ })
|
|
|
+ .state('historyMsg', {
|
|
|
+ url: '/historyMsg',
|
|
|
+ templateUrl: 'templates/historyMsg.html',
|
|
|
+ controller: 'HistoryMsgController'
|
|
|
});
|
|
|
}
|
|
|
]);
|