Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Codecrew
/
Moya
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
30
Merge Requests
2
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 3e5da1d0
authored
Apr 01, 2018
by
Tuukka Kivilahti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup
1 parent
e24385dc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
5 deletions
code/moya-angular/src/app/app.component.ts
code/moya-angular/src/app/app.component.ts
View file @
3e5da1d
import
{
Component
,
NgZone
}
from
'@angular/core'
;
import
{
Component
,
NgZone
}
from
'@angular/core'
;
import
{
Router
}
from
'@angular/router'
;
import
{
Router
}
from
'@angular/router'
;
import
{
TranslateService
}
from
'@ngx-translate/core'
;
import
{
DEFAULT_LOCALE
,
MoyaLocaleService
}
from
'./components/moya-locale/moya-locale.service'
;
declare
var
window
:
any
;
declare
var
window
:
any
;
...
@@ -14,7 +12,7 @@ declare var window: any;
...
@@ -14,7 +12,7 @@ declare var window: any;
})
})
export
class
AppComponent
{
export
class
AppComponent
{
constructor
(
private
router
:
Router
,
private
zone
:
NgZone
,
private
translate
:
TranslateService
)
{
constructor
(
private
router
:
Router
,
private
zone
:
NgZone
)
{
window
.
angularRoute
=
(
url
=>
{
window
.
angularRoute
=
(
url
=>
{
zone
.
run
(()
=>
{
zone
.
run
(()
=>
{
...
@@ -22,9 +20,7 @@ export class AppComponent {
...
@@ -22,9 +20,7 @@ export class AppComponent {
});
});
});
});
}
}
}
}
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment