I have been working on enhancing the blur-admin project by adding a login page along with its own controller.
To achieve this, I created a separate controller folder within the pages directory called demoadmin.login
.
The login functionality is performing well within the dashboard, but now my goal is to display it as a standalone page.
Currently, it appears like this:
https://i.sstatic.net/kFx96.png
However, I would like it to be displayed outside as shown here:
https://i.sstatic.net/X0gTY.png
Below is an excerpt from my app.js
file:
'use strict';
angular.module('bluradmin', [
'ngAnimate',
'ui.bootstrap',
'ui.sortable',
'ui.router',
'ngTouch',
'toastr',
'ui.slimscroll',
'angular-progress-button-styles',
'ngStorage',
//'smart-table',
//"xeditable",
//'ngJsTree',
'bluradmin.theme',
'bluradmin.pages',
'bluradmin.login'
]).run(function ($localStorage) {
console.log($localStorage);
});
In addition, I made changes to my pages.module.js
:
(function () {
'use strict';
angular.module('bluradmin.pages', [
'ui.router',
'bluradmin.pages.dashboard'
])
.config(routeConfig);
/** @ngInject */
function routeConfig($urlRouterProvider, baSidebarServiceProvider) {
$urlRouterProvider.otherwise('/login');
}
})();
What steps can I take to configure the ui-router
in order to achieve this desired behavior?