problem description
angluarjs ui-rote cannot load windows after using window naming
the environmental background of the problems and what methods you have tried
angular.module ("myApp", ["ui.router", "oc.lazyLoad"])
.config (function ($stateProvider, $urlRouterProvider) {
var _lazyLoad = function (loaded) { //
return function ($ocLazyLoad) {
return $ocLazyLoad.load(loaded, {
serie: true
})
}
};
$urlRouterProvider.otherwise("/")
$stateProvider
.state("login", { //
url: "/",
veiws: {
"wh": {
templateUrl: "views/login/login.html",
// controller: "loginController",
}
},
resolve: { //
loadMyFile: _lazyLoad(["views/login/login.js"])
}
})
related codes
/ / Please paste the code text below (do not replace the code with pictures)
html section (wrapped in the angular frame, ui-rote, lazy load)
< body >
<div ui-view="wh"></div>
<a ui-sref="foot.my">44444</a>
< / body >