Skip to content

Commit 5900af9

Browse files
committed
deleted footer on maps page
1 parent 5a571a5 commit 5900af9

File tree

3 files changed

+13
-19
lines changed

3 files changed

+13
-19
lines changed

app/app.component.js

Lines changed: 5 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/app.component.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/app.component.ts

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,18 @@ declare var $:any;
1010
})
1111

1212
export class AppComponent implements OnInit{
13+
location: Location;
14+
constructor(location:Location) {
15+
this.location = location;
16+
}
1317
ngOnInit(){
1418
$.getScript('../assets/js/material-dashboard.js');
1519
$.getScript('../assets/js/initMenu.js');
1620
}
17-
constructor(location: PlatformLocation) {
18-
19-
location.onPopState(() => {
20-
// $('.sidebar-wrapper .nav-container div').removeClass('.moving-tab');
21-
// $.getScript('../assets/js/material-dashboard-angular.js');
22-
console.log('pressed back!');
23-
24-
});
25-
26-
}
2721
public isMaps(path){
28-
if(path == window.location.pathname){
22+
var titlee = this.location.prepareExternalUrl(this.location.path());
23+
titlee = titlee.slice( 1 );
24+
if(path == titlee){
2925
return false;
3026
}
3127
else {

0 commit comments

Comments
 (0)