Ubuntu Pastebin

Paste from ilhami at Wed, 6 Jan 2016 21:53:02 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
var dailyIslamicTips = angular.module('dailyIslamicTips', ['ui.router', 'ui.bootstrap' ,'ui.bootstrap.tpls',
'ngResource', 'dailyIslamicTips.services', 'dailyIslamicTips.controller']);

dailyIslamicTips.config(function($stateProvider, $urlRouterProvider, $locationProvider) {

    $stateProvider
        .state('dashboard', {
            url: '/dashboard',
            templateUrl: '/templates/dashboard.html',
            controller: 'ReminderListController'
        })

        .state('newReminder' , {
            url: '/dashboard/reminder/new',
            onEnter: ['$stateParams', '$state', '$uibModal', '$resource', function($stateParams, $state, $uibModal, $resource) {
                $uibModal.open({
                    templateUrl: "/templates/create-reminder.html",
                    controller: 'ReminderCreateController',
                }).result.finally(function() {
                    $state.go('dashboard');
                });
            }],
        })

        .state('settings', {
            url: '/settings',
            templateUrl: '/templates/settings.html'
        })

        .state('help', {
            url: '/help',
            templateUrl: '/templates/help.html'
        });

        $locationProvider.html5Mode(true);
}).run(function($state) {
    $state.go('dashboard');
});
Download as text