2

So I have this code:

app.config(function ($stateProvider, $urlRouterProvider) {
        $stateProvider
        .state('login', {
            url: '/',
            templateUrl: 'login.html',
            controller: 'LoginController'
        })

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

        .state('customers', {
            url: '/customers',
            templateUrl: 'templates/customers.html',
            controller: 'CustomerController'
        })

        $urlRouterProvider.otherwise('/');
});

Everything works but when I go to login, I still get the base template since I am using ui-view. How can I make the login state on his own? I mean without the base template where the ui-view resides.

2
  • 1
    Maybe this will help you Commented Dec 18, 2016 at 15:34
  • No idea what base template even is. Question is not very clear and neither is objective Commented Dec 18, 2016 at 17:50

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.