Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Linnea Samila
/
Moya
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 8b51f400
authored
Feb 24, 2017
by
Tuukka Kivilahti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nothing important
1 parent
9dac95c2
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
11 additions
and
4 deletions
code/moya-angular/angular-cli.json
code/moya-angular/package.json
code/moya-angular/src/app/app.component.html
code/moya-angular/src/app/app.component.ts
code/moya-angular/src/app/app.module.ts
code/moya-angular/src/environments/environment.hmr.ts
code/moya-angular/src/environments/environment.prod.ts
code/moya-angular/src/main.ts
code/moya-angular/angular-cli.json
View file @
8b51f40
...
@@ -22,8 +22,8 @@
...
@@ -22,8 +22,8 @@
"../node_modules/bootstrap/dist/css/bootstrap.min.css"
"../node_modules/bootstrap/dist/css/bootstrap.min.css"
],
],
"scripts"
:
[],
"scripts"
:
[],
"environmentSource"
:
"environments/environment.ts"
,
"environments"
:
{
"environments"
:
{
"source"
:
"environments/environment.ts"
,
"dev"
:
"environments/environment.ts"
,
"dev"
:
"environments/environment.ts"
,
"hmr"
:
"environments/environment.hmr.ts"
,
"hmr"
:
"environments/environment.hmr.ts"
,
"prod"
:
"environments/environment.prod.ts"
"prod"
:
"environments/environment.prod.ts"
...
...
code/moya-angular/package.json
View file @
8b51f40
...
@@ -3,8 +3,7 @@
...
@@ -3,8 +3,7 @@
"version"
:
"0.0.0"
,
"version"
:
"0.0.0"
,
"license"
:
"MIT"
,
"license"
:
"MIT"
,
"angular-cli"
:
{},
"angular-cli"
:
{},
"scripts"
:
{
"scripts"
:
{},
},
"private"
:
true
,
"private"
:
true
,
"dependencies"
:
{
"dependencies"
:
{
"@angular/common"
:
"^2.3.1"
,
"@angular/common"
:
"^2.3.1"
,
...
@@ -25,6 +24,7 @@
...
@@ -25,6 +24,7 @@
"zone.js"
:
"^0.7.2"
"zone.js"
:
"^0.7.2"
},
},
"devDependencies"
:
{
"devDependencies"
:
{
"@angular/cli"
:
"^1.0.0-beta.32.3"
,
"@angular/compiler-cli"
:
"^2.3.1"
,
"@angular/compiler-cli"
:
"^2.3.1"
,
"@angularclass/hmr"
:
"^1.2.2"
,
"@angularclass/hmr"
:
"^1.2.2"
,
"@types/jasmine"
:
"2.5.38"
,
"@types/jasmine"
:
"2.5.38"
,
...
...
code/moya-angular/src/app/app.component.html
View file @
8b51f40
<router-outlet></router-outlet>
<router-outlet></router-outlet>
<app-test
([
counter
])="
counter
"
>
</app-test>
{{counter}}
<a
routerLink=
"/test"
routerLinkActive=
"active"
>
test
</a>
<a
routerLink=
"/test"
routerLinkActive=
"active"
>
test
</a>
<a
routerLink=
"/vip/viplist"
routerLinkActive=
"active"
>
viplist
</a>
<a
routerLink=
"/vip/viplist"
routerLinkActive=
"active"
>
viplist
</a>
code/moya-angular/src/app/app.component.ts
View file @
8b51f40
...
@@ -10,6 +10,8 @@ declare var window: any;
...
@@ -10,6 +10,8 @@ declare var window: any;
})
})
export
class
AppComponent
{
export
class
AppComponent
{
counter
=
4
;
constructor
(
private
router
:
Router
,
private
zone
:
NgZone
)
{
constructor
(
private
router
:
Router
,
private
zone
:
NgZone
)
{
...
...
code/moya-angular/src/app/app.module.ts
View file @
8b51f40
...
@@ -12,7 +12,6 @@ import { RouterModule, Routes } from '@angular/router';
...
@@ -12,7 +12,6 @@ import { RouterModule, Routes } from '@angular/router';
import
{
TestComponent
}
from
"./test/test.component"
;
import
{
TestComponent
}
from
"./test/test.component"
;
import
{
MaterialModule
}
from
"@angular/material"
;
import
{
MaterialModule
}
from
"@angular/material"
;
const
appRoutes
:
Routes
=
[
const
appRoutes
:
Routes
=
[
{
path
:
'vip/viplist'
,
component
:
ViplistComponent
},
{
path
:
'vip/viplist'
,
component
:
ViplistComponent
},
{
path
:
'test'
,
component
:
TestComponent
}
{
path
:
'test'
,
component
:
TestComponent
}
...
...
code/moya-angular/src/environments/environment.hmr.ts
View file @
8b51f40
export
const
environment
=
{
export
const
environment
=
{
production
:
false
,
production
:
false
,
hmr
:
true
hmr
:
true
...
...
code/moya-angular/src/environments/environment.prod.ts
View file @
8b51f40
export
const
environment
=
{
export
const
environment
=
{
production
:
true
,
production
:
true
,
hmr
:
false
hmr
:
false
...
...
code/moya-angular/src/main.ts
View file @
8b51f40
...
@@ -28,3 +28,4 @@ if (environment.hmr) {
...
@@ -28,3 +28,4 @@ if (environment.hmr) {
}
else
{
}
else
{
bootstrap
();
bootstrap
();
}
}
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