File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed
Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change 1+ <!DOCTYPE html>
2+ < html >
3+ < head >
4+ < meta charset ="utf-8 ">
5+ < title > AngularTS</ title >
6+ < link rel ="shortcut icon " type ="image/png " href ="images/favicon.ico ">
7+ < script type ="module " src ="../index.js "> </ script >
8+ < script >
9+ document . addEventListener ( "DOMContentLoaded" , ( ) => {
10+ window . angular . module ( "router" , [ ] ) . config ( [
11+ "$stateProvider" ,
12+ "$locationProvider" ,
13+ ( $stateProvider , $locationProvider ) => {
14+ $locationProvider . html5ModeConf = {
15+ enabled : true ,
16+ requireBase : false ,
17+ rewriteLinks : false ,
18+ } ;
19+ $stateProvider
20+ . state ( {
21+ name : "home" ,
22+ url : "/src/router/router-test.html" ,
23+ template : "<h3>Success</h3>" ,
24+ } ) ;
25+ } ,
26+ ] ) ;
27+ } ) ;
28+ </ script >
29+ </ head >
30+ < body ng-app ="router ">
31+ < ng-view > </ ng-view >
32+ </ body >
33+ </ html >
You can’t perform that action at this time.
0 commit comments