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 4b7d9b19
authored
Feb 08, 2017
by
Tuukka Kivilahti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
routetest, for pull
1 parent
39dcfa86
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
24 additions
and
9 deletions
code/moya-angular/package.json
code/moya-angular/src/app/app.component.html
code/moya-angular/src/app/app.module.ts
code/moya-angular/src/app/viplist/viplist.component.html
code/moya-web/WebContent/angular.xhtml
code/moya-angular/package.json
View file @
4b7d9b1
...
...
@@ -29,6 +29,11 @@
"ts-helpers"
:
"^1.1.1"
,
"zone.js"
:
"^0.7.2"
},
"scripts"
:
{
"prekissa"
:
"echo
\"
pre kissa
\"
"
,
"postkissa"
:
"echo
\"
post kissa
\"
"
,
"kissa"
:
"node test.js"
},
"devDependencies"
:
{
"@angular/compiler-cli"
:
"^2.3.1"
,
"@types/jasmine"
:
"2.5.38"
,
...
...
code/moya-angular/src/app/app.component.html
View file @
4b7d9b1
<h1>
VIPLIST
</h1>
<moya-viplist>
Loading viplist
</moya-viplist>
<h1>
Moya
</h1>
<router-outlet></router-outlet>
code/moya-angular/src/app/app.module.ts
View file @
4b7d9b1
...
...
@@ -8,17 +8,29 @@ import { ViplistComponent } from './viplist/viplist.component';
import
{
AlertModule
}
from
"ng2-bootstrap"
;
import
{
MoyaRestModule
}
from
"./moya-rest/moya-rest.module"
;
import
{
RouterModule
,
Routes
}
from
'@angular/router'
;
import
{
TestComponent
}
from
"./test/test.component"
;
const
appRoutes
:
Routes
=
[
{
path
:
'viplist'
,
component
:
ViplistComponent
},
{
path
:
'test'
,
component
:
TestComponent
}
];
@
NgModule
({
declarations
:
[
AppComponent
,
ViplistComponent
ViplistComponent
,
TestComponent
],
imports
:
[
BrowserModule
,
FormsModule
,
HttpModule
,
AlertModule
.
forRoot
(),
MoyaRestModule
.
forRoot
()
MoyaRestModule
.
forRoot
(),
RouterModule
.
forRoot
(
appRoutes
)
],
providers
:
[],
bootstrap
:
[
AppComponent
]
...
...
code/moya-angular/src/app/viplist/viplist.component.html
View file @
4b7d9b1
...
...
@@ -17,6 +17,7 @@
<td>
<div>
<div
*
ngFor=
"let p of vip.products"
>
<div
style=
"display: inline-block;"
>
{{p.name}}
</div>
<div
style=
"display: inline-block;"
>
{{p.quantity}}
</div>
</div>
...
...
code/moya-web/WebContent/angular.xhtml
View file @
4b7d9b1
...
...
@@ -6,7 +6,8 @@
<h:body>
<ui:composition
template=
"#{sessionHandler.template}"
>
<ui:define
name=
"headerdata"
>
<base
href=
"/MoyaWeb/resources/angular-dist/"
></base>
<!-- base href="/MoyaWeb/resources/angular-dist/"></base-->
<base
href=
"/MoyaWeb/angular.jsf#/#/"
></base>
</ui:define>
<ui:define
name=
"content"
>
...
...
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