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 5d372d62
authored
Sep 21, 2018
by
Riina Antikainen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Routing changes
1 parent
b3eaa941
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
15 deletions
code/moya-management-portal/src/app/app.mock.module.ts
code/moya-management-portal/src/app/app.module.ts
code/moya-management-portal/src/app/app.mock.module.ts
View file @
5d372d6
import
{
OrganizationComponent
}
from
'./organization/organization.component'
;
import
{
BrowserModule
}
from
'@angular/platform-browser'
;
import
{
BrowserModule
}
from
'@angular/platform-browser'
;
import
{
NgModule
}
from
'@angular/core'
;
import
{
NgModule
}
from
'@angular/core'
;
import
{
AppComponent
}
from
'./app.component'
;
import
{
AppComponent
}
from
'./app.component'
;
...
@@ -6,9 +5,6 @@ import { AppMockService } from './shared/app.mock.service';
...
@@ -6,9 +5,6 @@ import { AppMockService } from './shared/app.mock.service';
import
{
AppService
}
from
'./shared/app.service'
;
import
{
AppService
}
from
'./shared/app.service'
;
import
{
OrganizationModule
}
from
'./organization/organization.module'
;
import
{
OrganizationModule
}
from
'./organization/organization.module'
;
import
{
BrowserAnimationsModule
}
from
'@angular/platform-browser/animations'
;
import
{
BrowserAnimationsModule
}
from
'@angular/platform-browser/animations'
;
import
{
RouterModule
}
from
'@angular/router'
;
import
{
NewOrganizationComponent
}
from
'./organization/new-organization/new-organization.component'
;
import
{
NewEventComponent
}
from
'./organization/new-event/new-event.component'
;
@
NgModule
({
@
NgModule
({
...
@@ -18,13 +14,7 @@ import { NewEventComponent } from './organization/new-event/new-event.component'
...
@@ -18,13 +14,7 @@ import { NewEventComponent } from './organization/new-event/new-event.component'
imports
:
[
imports
:
[
BrowserModule
,
BrowserModule
,
BrowserAnimationsModule
,
BrowserAnimationsModule
,
OrganizationModule
,
OrganizationModule
RouterModule
.
forRoot
([
{
path
:
'new-organization'
,
component
:
NewOrganizationComponent
},
{
path
:
'organization'
,
component
:
OrganizationComponent
},
{
path
:
'new-event/:id'
,
component
:
NewEventComponent
},
{
path
:
''
,
redirectTo
:
'organization'
,
pathMatch
:
'full'
}
],
{
useHash
:
true
})
],
],
providers
:
[{
provide
:
AppService
,
useClass
:
AppMockService
}],
providers
:
[{
provide
:
AppService
,
useClass
:
AppMockService
}],
bootstrap
:
[
AppComponent
]
bootstrap
:
[
AppComponent
]
...
...
code/moya-management-portal/src/app/app.module.ts
View file @
5d372d6
import
{
OrganizationComponent
}
from
'./organization/organization.component'
;
import
{
BrowserModule
}
from
'@angular/platform-browser'
;
import
{
BrowserModule
}
from
'@angular/platform-browser'
;
import
{
NgModule
}
from
'@angular/core'
;
import
{
NgModule
}
from
'@angular/core'
;
import
{
AppComponent
}
from
'./app.component'
;
import
{
AppComponent
}
from
'./app.component'
;
import
{
AppMockService
}
from
'./shared/app.mock.service'
;
import
{
AppService
}
from
'./shared/app.service'
;
import
{
AppService
}
from
'./shared/app.service'
;
import
{
OrganizationModule
}
from
'./organization/organization.module'
;
import
{
BrowserAnimationsModule
}
from
'@angular/platform-browser/animations'
;
import
{
RouterModule
}
from
'@angular/router'
;
import
{
NewOrganizationComponent
}
from
'./organization/new-organization/new-organization.component'
;
import
{
NewEventComponent
}
from
'./organization/new-event/new-event.component'
;
@
NgModule
({
@
NgModule
({
imports
:
[
BrowserModule
,
BrowserAnimationsModule
,
OrganizationModule
,
RouterModule
.
forRoot
([
{
path
:
'new-organization'
,
component
:
NewOrganizationComponent
},
{
path
:
'organization'
,
component
:
OrganizationComponent
},
{
path
:
'new-event/:id'
,
component
:
NewEventComponent
},
{
path
:
''
,
redirectTo
:
'organization'
,
pathMatch
:
'full'
}
],
{
useHash
:
true
})
],
declarations
:
[
declarations
:
[
AppComponent
AppComponent
],
],
imports
:
[
providers
:
[{
provide
:
AppService
,
useClass
:
AppMockService
}],
BrowserModule
],
providers
:
[
AppService
],
bootstrap
:
[
AppComponent
]
bootstrap
:
[
AppComponent
]
})
})
export
class
AppModule
{
}
export
class
AppModule
{
}
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