File tree Expand file tree Collapse file tree 3 files changed +12
-8
lines changed Expand file tree Collapse file tree 3 files changed +12
-8
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " lbd-free-angular-cli" ,
3
- "version" : " 1.4.0 " ,
3
+ "version" : " 1.5.1 " ,
4
4
"license" : " MIT" ,
5
5
"scripts" : {
6
6
"ng" : " ng" ,
23
23
"@angular/router" : " 7.2.12" ,
24
24
"@ngui/map" : " 0.30.3" ,
25
25
"@types/googlemaps" : " 3.30.19" ,
26
- "animate.css" : " ^ 3.7.0" ,
26
+ "animate.css" : " 3.7.0" ,
27
27
"arrive" : " 2.4.1" ,
28
28
"bootstrap" : " 3.3.7" ,
29
29
"bootstrap-notify" : " 3.1.3" ,
30
30
"chartist" : " 0.11.0" ,
31
- "core-js" : " 3.0.1 " ,
31
+ "core-js" : " 2.6.9 " ,
32
32
"googleapis" : " 33.0.0" ,
33
- "jquery" : " 3.3 .1" ,
33
+ "jquery" : " 3.4 .1" ,
34
34
"perfect-scrollbar" : " 1.4.0" ,
35
35
"rxjs" : " 6.4.0" ,
36
36
"rxjs-compat" : " 6.4.0" ,
37
- "zone.js" : " 0.9.0" ,
38
- "webpack" : " 4.29.6"
37
+ "zone.js" : " 0.9.0"
39
38
},
40
39
"devDependencies" : {
41
40
"@angular-devkit/build-angular" : " 0.13.8" ,
Original file line number Diff line number Diff line change @@ -28,7 +28,9 @@ const routes: Routes =[
28
28
imports : [
29
29
CommonModule ,
30
30
BrowserModule ,
31
- RouterModule . forRoot ( routes )
31
+ RouterModule . forRoot ( routes , {
32
+ useHash : true
33
+ } )
32
34
] ,
33
35
exports : [
34
36
] ,
Original file line number Diff line number Diff line change @@ -52,7 +52,10 @@ export class NavbarComponent implements OnInit{
52
52
53
53
getTitle ( ) {
54
54
var titlee = this . location . prepareExternalUrl ( this . location . path ( ) ) ;
55
- titlee = titlee . split ( '/' ) . pop ( ) ;
55
+ if ( titlee . charAt ( 0 ) === '#' ) {
56
+ titlee = titlee . slice ( 1 ) ;
57
+ }
58
+
56
59
for ( var item = 0 ; item < this . listTitles . length ; item ++ ) {
57
60
if ( this . listTitles [ item ] . path === titlee ) {
58
61
return this . listTitles [ item ] . title ;
You can’t perform that action at this time.
0 commit comments