Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Antti Väyrynen
/
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 c1998669
authored
Feb 24, 2017
by
Tuukka Kivilahti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nothing important
1 parent
1229cf09
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 @
c199866
...
...
@@ -22,8 +22,8 @@
"../node_modules/bootstrap/dist/css/bootstrap.min.css"
],
"scripts"
:
[],
"environmentSource"
:
"environments/environment.ts"
,
"environments"
:
{
"source"
:
"environments/environment.ts"
,
"dev"
:
"environments/environment.ts"
,
"hmr"
:
"environments/environment.hmr.ts"
,
"prod"
:
"environments/environment.prod.ts"
...
...
code/moya-angular/package.json
View file @
c199866
...
...
@@ -3,8 +3,7 @@
"version"
:
"0.0.0"
,
"license"
:
"MIT"
,
"angular-cli"
:
{},
"scripts"
:
{
},
"scripts"
:
{},
"private"
:
true
,
"dependencies"
:
{
"@angular/common"
:
"^2.3.1"
,
...
...
@@ -25,6 +24,7 @@
"zone.js"
:
"^0.7.2"
},
"devDependencies"
:
{
"@angular/cli"
:
"^1.0.0-beta.32.3"
,
"@angular/compiler-cli"
:
"^2.3.1"
,
"@angularclass/hmr"
:
"^1.2.2"
,
"@types/jasmine"
:
"2.5.38"
,
...
...
code/moya-angular/src/app/app.component.html
View file @
c199866
<router-outlet></router-outlet>
<app-test
([
counter
])="
counter
"
>
</app-test>
{{counter}}
<a
routerLink=
"/test"
routerLinkActive=
"active"
>
test
</a>
<a
routerLink=
"/vip/viplist"
routerLinkActive=
"active"
>
viplist
</a>
code/moya-angular/src/app/app.component.ts
View file @
c199866
...
...
@@ -10,6 +10,8 @@ declare var window: any;
})
export
class
AppComponent
{
counter
=
4
;
constructor
(
private
router
:
Router
,
private
zone
:
NgZone
)
{
...
...
code/moya-angular/src/app/app.module.ts
View file @
c199866
...
...
@@ -12,7 +12,6 @@ import { RouterModule, Routes } from '@angular/router';
import
{
TestComponent
}
from
"./test/test.component"
;
import
{
MaterialModule
}
from
"@angular/material"
;
const
appRoutes
:
Routes
=
[
{
path
:
'vip/viplist'
,
component
:
ViplistComponent
},
{
path
:
'test'
,
component
:
TestComponent
}
...
...
code/moya-angular/src/environments/environment.hmr.ts
View file @
c199866
export
const
environment
=
{
production
:
false
,
hmr
:
true
...
...
code/moya-angular/src/environments/environment.prod.ts
View file @
c199866
export
const
environment
=
{
production
:
true
,
hmr
:
false
...
...
code/moya-angular/src/main.ts
View file @
c199866
...
...
@@ -28,3 +28,4 @@ if (environment.hmr) {
}
else
{
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