I am not very familiar with routing, so I appreciate any extra help with this (and some patience too - thanks!)...
I have an existing index.html and app.js file using Angular routing. I need to convert to Kendo UI routing to keep the SPA architecture.
Here is my app.js
Here is the index.html (code where the SPA is used):
I have read through some documentation and tutorials, but I am not sure how to begin this or what I should change.
Please let me know what I need to do to get this up and running.
Thanks!
I have an existing index.html and app.js file using Angular routing. I need to convert to Kendo UI routing to keep the SPA architecture.
Here is my app.js
var
app = angular.module(
'App'
, [
'ngRoute'
]);
var
busyIndicator =
new
WL.BusyIndicator(
'content'
, {
text :
"Loading ..."
,
bounceAnimation :
false
,
fullScreen :
true
,
minDuration : 3,
textColor :
"black"
,
opacity : 1,
strokeOpacity : 0.25
});
app.factory(
"busyIndicator"
,
function
() {
return
busyIndicator;
});
app.config([
'$routeProvider'
,
function
($routeProvider) {
$routeProvider.
when(
'/module'
, {
templateUrl :
'views/modules.html'
,
controller :
'ModuleController'
}).
when(
'/module/:moduleId'
, {
templateUrl :
'views/level.html'
,
controller :
'LevelController'
}).
when(
'/module/:moduleId/:levelId'
, {
templateUrl :
'views/quiz.html'
,
controller :
'QuizController'
}).
when(
'/rank'
, {
templateUrl :
'views/rank.html'
,
controller :
'RankController'
}).
when(
'/help'
, {
templateUrl :
'views/help.html'
,
controller :
'HelpController'
}).
when(
'/result'
, {
templateUrl :
'views/result.html'
,
controller :
'ResultController'
}).
when(
'/nick'
, {
templateUrl :
'views/nickname.html'
,
controller :
'NickController'
}).
when(
'/login'
, {
templateUrl :
'views/login.html'
,
controller :
'LoginController'
}).
when(
'/loginSuccess'
, {
templateUrl :
'views/loginSuccess.html'
,
controller :
'LoginSuccessController'
}).
otherwise({
redirectTo :
'/login'
,
});
;
} ]);
Here is the index.html (code where the SPA is used):
..
<
script
src
=
"js/app.js"
></
script
>
</
head
>
<
body
>
<
div
ng-class
=
"tabClass"
>
<
div
class
=
"app_view ng-view"
>
</
div
>
</
div
>
</
body
>
...
I have read through some documentation and tutorials, but I am not sure how to begin this or what I should change.
Please let me know what I need to do to get this up and running.
Thanks!