Discussions
Unable to load the control part,the js file is loading
Here is the code
$ocLazyLoadProvider.config({
'debug': true, // For debugging 'true/false'
'events': true, // For Event 'true/false'
'modules': [{ // Set modules initially
name : 'start', // State1 module
files: ['js/controller/StartPageController.js','css/slider.css','css/style.css','js/application.js','Assets/CSS/studio.css','js/controller/RegistrationController.js']
},{
name : 'home', // State2 module
files: ['js/controller/HomeController.js','css/animate.css']
},
{
name : 'studio', // State2 module
files: ['js/controller/StudioController.js','Assets/CSS/CssStudio.css']
},{
name : 'gallery', // State2 module
files: ['js/controller/GalleryController.js']
},
{
name : 'login', // State2 module
files: ['js/controller/LoginController.js']
},
{
name : 'registration', // State2 module
files: ['js/controller/RegistrationController.js']
}
]
});
//Config/states of UI Router
$stateProvider
.state('start', {
url: "/start",
views : {
"" : {
templateUrl:"view/slider.html"
}
},
resolve: {
loadMyCtrl: ['$ocLazyLoad', function($ocLazyLoad) {
return $ocLazyLoad.load('start'); // Resolve promise and load before view
}]
}
})
//controller.js
.controller("LoginController", function ($scope, $state, $ionicModal, $rootScope, $ionicNavBarDelegate, $ionicSideMenuDelegate, DataStorageService, TranslateService, $ionicHistory, $ionicPopup, UserService, $AlertService, PortfolioService) {
$ionicSideMenuDelegate.canDragContent(false);
$scope.hideBackButton = true;
$scope.passwordType = "password";
$scope.passwordFlag = true;
$scope.user = {email: "", password: ""};
$scope.showPassword = function () {
$scope.passwordFlag = !$scope.passwordFlag;
if ($scope.passwordType === "password") {
$scope.passwordType = "text";
} else {
$scope.passwordType = "password";
}
};