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 091de5de
authored
Apr 01, 2018
by
Tuukka Kivilahti
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/routing' into 'master'
Feature/routing See merge request !397
2 parents
1cbc86e7
9e0c1706
Hide whitespace changes
Inline
Side-by-side
Showing
32 changed files
with
291 additions
and
95 deletions
code/moya-angular/.angular-cli.json
code/moya-angular/.gitignore
code/moya-angular/e2e/app.po.ts
code/moya-angular/package.json
code/moya-angular/tuotantomoya.conf.json → code/moya-angular/production-moya.conf.json
code/moya-angular/src/app/app-routing.module.ts
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/app/menu/admin-menu/admin-menu.component.ts
code/moya-angular/src/app/menu/info-menu/info-menu.component.ts
code/moya-angular/src/app/menu/left-menu/left-menu.module.ts
code/moya-angular/src/app/menu/user-menu/user-menu.component.ts
code/moya-angular/src/app/pages/admin/admin-routing.module.ts
code/moya-angular/src/app/pages/admin/admin.component.ts
code/moya-angular/src/app/pages/admin/admin.module.ts
code/moya-angular/src/app/pages/info/info-routing.module.ts
code/moya-angular/src/app/pages/info/info.component.ts
code/moya-angular/src/app/pages/info/info.module.ts
code/moya-angular/src/app/pages/login/login-routing.module.ts
code/moya-angular/src/app/pages/login/login.component.css
code/moya-angular/src/app/pages/login/login.component.html
code/moya-angular/src/app/pages/login/login.component.spec.ts
code/moya-angular/src/app/pages/login/login.component.ts
code/moya-angular/src/app/pages/login/login.module.ts
code/moya-angular/src/app/pages/old-moya/old-moya.module.ts
code/moya-angular/src/app/pages/user/user-routing.module.ts
code/moya-angular/src/app/pages/user/user.component.ts
code/moya-angular/src/app/pages/user/user.module.ts
code/moya-angular/src/app/shared/pipes/pipes.module.ts
code/moya-angular/src/app/test/test.component.ts
code/moya-angular/src/index.html
code/moya-angular/.angular-cli.json
View file @
091de5d
...
...
@@ -17,7 +17,7 @@
"test"
:
"test.ts"
,
"tsconfig"
:
"tsconfig.app.json"
,
"testTsconfig"
:
"tsconfig.spec.json"
,
"prefix"
:
"
app
"
,
"prefix"
:
"
moya
"
,
"styles"
:
[
"styles.scss"
],
...
...
code/moya-angular/.gitignore
View file @
091de5d
...
...
@@ -10,6 +10,7 @@
# IDEs and editors
/.idea
/.vscode
.project
.classpath
.c9/
...
...
code/moya-angular/e2e/app.po.ts
View file @
091de5d
...
...
@@ -6,6 +6,6 @@ export class MoyaAngularPage {
}
getParagraphText
()
{
return
element
(
by
.
css
(
'
app
-root h1'
)).
getText
();
return
element
(
by
.
css
(
'
moya
-root h1'
)).
getText
();
}
}
code/moya-angular/package.json
View file @
091de5d
...
...
@@ -36,7 +36,7 @@
},
"devDependencies"
:
{
"@angular/cdk"
:
"^5.2.4"
,
"@angular/cli"
:
"^1.
7.3
"
,
"@angular/cli"
:
"^1.
6.5
"
,
"@angular/compiler-cli"
:
"^5.2.9"
,
"@angular/language-service"
:
"^5.2.9"
,
"@types/jasmine"
:
"~2.8.3"
,
...
...
code/moya-angular/
tuotanto
moya.conf.json
→
code/moya-angular/
production-
moya.conf.json
View file @
091de5d
File moved
code/moya-angular/src/app/app-routing.module.ts
0 → 100644
View file @
091de5d
import
{
NgModule
}
from
'@angular/core'
;
import
{
CommonModule
}
from
'@angular/common'
;
import
{
Routes
,
RouterModule
}
from
'@angular/router'
;
import
{
LoginComponent
}
from
'./pages/login/login.component'
;
import
{
InfoComponent
}
from
'./pages/info/info.component'
;
const
APP_ROUTES
:
Routes
=
[
{
path
:
'info'
,
loadChildren
:
'app/pages/info/info.module#InfoModule'
},
{
path
:
'admin'
,
loadChildren
:
'app/pages/admin/admin.module#AdminModule'
},
{
path
:
'user'
,
loadChildren
:
'app/pages/user/user.module#UserModule'
},
{
path
:
'login'
,
component
:
LoginComponent
},
{
path
:
''
,
pathMatch
:
'full'
,
redirectTo
:
'login'
},
{
path
:
'**'
,
component
:
LoginComponent
}
];
@
NgModule
({
imports
:
[
RouterModule
.
forRoot
(
APP_ROUTES
)
],
exports
:
[
RouterModule
]
})
export
class
AppRoutingModule
{
}
code/moya-angular/src/app/app.component.html
View file @
091de5d
<div
id=
"top-container"
>
<div
id=
"left-menu"
>
<router-outlet
name=
"left-menu"
></router-outlet>
...
...
@@ -15,4 +13,4 @@
<router-outlet></router-outlet>
</div>
</div>
</div>
\ No newline at end of file
code/moya-angular/src/app/app.component.ts
View file @
091de5d
...
...
@@ -3,10 +3,8 @@ import {Router} from '@angular/router';
declare
var
window
:
any
;
@
Component
({
selector
:
'
app
-root'
,
selector
:
'
moya
-root'
,
templateUrl
:
'./app.component.html'
,
styleUrls
:
[
'./app.component.scss'
]
})
...
...
code/moya-angular/src/app/app.module.ts
View file @
091de5d
import
{
BrowserModule
}
from
'@angular/platform-browser'
;
import
{
NgModule
}
from
'@angular/core'
;
import
{
FormsModule
}
from
'@angular/forms'
;
import
{
AppComponent
}
from
'./app.component'
;
import
{
ViplistComponent
}
from
'./pages/info/viplist/viplist.component'
;
import
{
AlertModule
}
from
'ngx-bootstrap'
;
import
{
RouterModule
,
Routes
}
from
'@angular/router'
;
import
{
OldMoyaComponent
}
from
'./pages/old-moya/old-moya.component'
;
import
{
TestComponent
}
from
'./test/test.component'
;
import
{
AdminMenuComponent
}
from
'./menu/admin-menu/admin-menu.component'
;
import
{
TopMenuComponent
}
from
'./menu/top-menu/top-menu.component'
;
import
{
LeftMenuComponent
}
from
'./menu/left-menu/left-menu.component'
;
import
{
InfoMenuComponent
}
from
'./menu/info-menu/info-menu.component'
;
import
{
UserMenuComponent
}
from
'./menu/user-menu/user-menu.component'
;
import
{
UserComponent
}
from
'./pages/user/user.component'
;
import
{
InfoComponent
}
from
'./pages/info/info.component'
;
import
{
AdminComponent
}
from
'./pages/admin/admin.component'
;
import
{
HTTP_INTERCEPTORS
,
HttpClient
,
HttpClientModule
}
from
'@angular/common/http'
;
import
{
CommonModule
}
from
'@angular/common'
;
import
{
CacheService
}
from
'./shared/services/cache.service'
;
import
{
SafePipe
}
from
'./shared/pipes/safe.pipe'
;
import
{
TranslateLoader
,
TranslateModule
}
from
'@ngx-translate/core'
;
import
{
TranslateHttpLoader
}
from
'@ngx-translate/http-loader'
;
import
{
MoyaLocaleService
}
from
'./components/moya-locale/moya-locale.service'
;
import
{
UserService
}
from
'./shared/services/user.service'
;
import
{
ErrorInterceptor
}
from
'./shared/interceptors/error.interceptor'
;
import
{
MoyaLocaleService
}
from
'./components/moya-locale/moya-locale.service'
;
import
{
CacheService
}
from
'./shared/services/cache.service'
;
import
{
TranslateHttpLoader
}
from
'@ngx-translate/http-loader'
;
import
{
TranslateModule
,
TranslateLoader
}
from
'@ngx-translate/core'
;
import
{
AlertModule
}
from
'ngx-bootstrap'
;
import
{
HttpClientModule
,
HttpClient
,
HTTP_INTERCEPTORS
}
from
'@angular/common/http'
;
import
{
FormsModule
}
from
'@angular/forms'
;
import
{
AppRoutingModule
}
from
'./app-routing.module'
;
import
{
BrowserModule
}
from
'@angular/platform-browser'
;
import
{
MoyaLocaleComponent
}
from
'./components/moya-locale/moya-locale.component'
;
import
{
ErrorInterceptor
}
from
'./shared/interceptors/error.interceptor'
;
import
{
ViplistService
}
from
'./pages/info/viplist/viplist.service'
;
import
{
UserService
}
from
'./shared/services/user.service'
;
const
appRoutes
:
Routes
=
[
{
path
:
'user'
,
children
:
[
{
path
:
''
,
component
:
UserMenuComponent
,
outlet
:
'left-menu'
},
{
path
:
''
,
pathMatch
:
'full'
,
component
:
UserComponent
},
{
path
:
'old'
,
component
:
OldMoyaComponent
},
]
},
{
path
:
'info'
,
children
:
[
{
path
:
''
,
component
:
InfoMenuComponent
,
outlet
:
'left-menu'
},
{
path
:
''
,
pathMatch
:
'full'
,
component
:
OldMoyaComponent
},
{
path
:
'old'
,
component
:
OldMoyaComponent
},
{
path
:
'viplist'
,
component
:
ViplistComponent
},
]
},
{
path
:
'admin'
,
children
:
[
{
path
:
''
,
component
:
AdminMenuComponent
,
outlet
:
'left-menu'
},
{
path
:
''
,
pathMatch
:
'full'
,
component
:
AdminComponent
},
{
path
:
'old'
,
component
:
OldMoyaComponent
},
]
},
{
path
:
'old'
,
pathMatch
:
'prefix'
,
component
:
OldMoyaComponent
},
];
import
{
TopMenuComponent
}
from
'./menu/top-menu/top-menu.component'
;
import
{
AppComponent
}
from
'./app.component'
;
import
{
LoginComponent
}
from
'./pages/login/login.component'
;
import
{
NgModule
}
from
'@angular/core'
;
@
NgModule
({
declarations
:
[
LoginComponent
,
AppComponent
,
ViplistComponent
,
OldMoyaComponent
,
TestComponent
,
TopMenuComponent
,
LeftMenuComponent
,
AdminMenuComponent
,
InfoMenuComponent
,
UserMenuComponent
,
UserComponent
,
InfoComponent
,
AdminComponent
,
SafePipe
,
MoyaLocaleComponent
],
imports
:
[
CommonModule
,
BrowserModule
,
AppRoutingModule
,
FormsModule
,
HttpClientModule
,
AlertModule
.
forRoot
(),
RouterModule
.
forRoot
(
appRoutes
),
TranslateModule
.
forRoot
({
loader
:
{
provide
:
TranslateLoader
,
...
...
@@ -103,5 +45,4 @@ const appRoutes: Routes = [
UserService
],
bootstrap
:
[
AppComponent
]
})
export
class
AppModule
{
}
export
class
AppModule
{
}
code/moya-angular/src/app/menu/admin-menu/admin-menu.component.ts
View file @
091de5d
...
...
@@ -3,7 +3,7 @@ import {MenuGroup} from '../models/menu-group.model';
import
{
MENU
}
from
'../defines/menu'
;
@
Component
({
selector
:
'
app
-admin-menu'
,
selector
:
'
moya
-admin-menu'
,
templateUrl
:
'./admin-menu.component.html'
,
styleUrls
:
[
'./admin-menu.component.scss'
]
})
...
...
code/moya-angular/src/app/menu/info-menu/info-menu.component.ts
View file @
091de5d
...
...
@@ -3,7 +3,7 @@ import {MenuGroup} from '../models/menu-group.model';
import
{
MENU
}
from
'../defines/menu'
;
@
Component
({
selector
:
'
app
-info-menu'
,
selector
:
'
moya
-info-menu'
,
templateUrl
:
'./info-menu.component.html'
,
styleUrls
:
[
'./info-menu.component.scss'
]
})
...
...
code/moya-angular/src/app/menu/left-menu/left-menu.module.ts
0 → 100644
View file @
091de5d
import
{
NgModule
}
from
'@angular/core'
;
import
{
CommonModule
}
from
'@angular/common'
;
import
{
LeftMenuComponent
}
from
'./left-menu.component'
;
import
{
RouterModule
}
from
'@angular/router'
;
@
NgModule
({
imports
:
[
CommonModule
,
RouterModule
],
declarations
:
[
LeftMenuComponent
],
exports
:
[
LeftMenuComponent
]
})
export
class
LeftMenuModule
{
}
code/moya-angular/src/app/menu/user-menu/user-menu.component.ts
View file @
091de5d
...
...
@@ -3,7 +3,7 @@ import {MenuGroup} from '../models/menu-group.model';
import
{
MENU
}
from
'../defines/menu'
;
@
Component
({
selector
:
'
app
-user-menu'
,
selector
:
'
moya
-user-menu'
,
templateUrl
:
'./user-menu.component.html'
,
styleUrls
:
[
'./user-menu.component.scss'
]
})
...
...
code/moya-angular/src/app/pages/admin/admin-routing.module.ts
0 → 100644
View file @
091de5d
import
{
OldMoyaComponent
}
from
'./../old-moya/old-moya.component'
;
import
{
AdminMenuComponent
}
from
'./../../menu/admin-menu/admin-menu.component'
;
import
{
NgModule
}
from
'@angular/core'
;
import
{
Routes
,
RouterModule
}
from
'@angular/router'
;
import
{
AdminComponent
}
from
'./admin.component'
;
const
routes
:
Routes
=
[
{
path
:
''
,
component
:
AdminMenuComponent
,
outlet
:
'left-menu'
},
{
path
:
''
,
pathMatch
:
'full'
,
component
:
AdminComponent
},
{
path
:
'old'
,
component
:
OldMoyaComponent
}
];
@
NgModule
({
imports
:
[
RouterModule
.
forChild
(
routes
)],
exports
:
[
RouterModule
]
})
export
class
AdminRoutingModule
{
}
code/moya-angular/src/app/pages/admin/admin.component.ts
View file @
091de5d
import
{
Component
,
OnInit
}
from
'@angular/core'
;
@
Component
({
selector
:
'
app
-admin'
,
selector
:
'
moya
-admin'
,
templateUrl
:
'./admin.component.html'
,
styleUrls
:
[
'./admin.component.scss'
]
})
...
...
code/moya-angular/src/app/pages/admin/admin.module.ts
0 → 100644
View file @
091de5d
import
{
OldMoyaModule
}
from
'./../old-moya/old-moya.module'
;
import
{
AdminMenuComponent
}
from
'./../../menu/admin-menu/admin-menu.component'
;
import
{
NgModule
}
from
'@angular/core'
;
import
{
CommonModule
}
from
'@angular/common'
;
import
{
AdminRoutingModule
}
from
'./admin-routing.module'
;
import
{
AdminComponent
}
from
'./admin.component'
;
import
{
LeftMenuModule
}
from
'../../menu/left-menu/left-menu.module'
;
@
NgModule
({
imports
:
[
CommonModule
,
AdminRoutingModule
,
LeftMenuModule
,
OldMoyaModule
],
declarations
:
[
AdminComponent
,
AdminMenuComponent
]
})
export
class
AdminModule
{
}
code/moya-angular/src/app/pages/info/info-routing.module.ts
0 → 100644
View file @
091de5d
import
{
ViplistComponent
}
from
'./viplist/viplist.component'
;
import
{
OldMoyaComponent
}
from
'./../old-moya/old-moya.component'
;
import
{
InfoMenuComponent
}
from
'./../../menu/info-menu/info-menu.component'
;
import
{
NgModule
}
from
'@angular/core'
;
import
{
Routes
,
RouterModule
}
from
'@angular/router'
;
import
{
InfoComponent
}
from
'./info.component'
;
const
routes
:
Routes
=
[
{
path
:
''
,
component
:
InfoMenuComponent
,
outlet
:
'left-menu'
},
{
path
:
''
,
pathMatch
:
'full'
,
component
:
OldMoyaComponent
},
{
path
:
'old'
,
component
:
OldMoyaComponent
},
{
path
:
'viplist'
,
component
:
ViplistComponent
}
];
@
NgModule
({
imports
:
[
RouterModule
.
forChild
(
routes
)],
exports
:
[
RouterModule
]
})
export
class
InfoRoutingModule
{
}
code/moya-angular/src/app/pages/info/info.component.ts
View file @
091de5d
import
{
Component
,
OnInit
}
from
'@angular/core'
;
@
Component
({
selector
:
'
app
-info'
,
selector
:
'
moya
-info'
,
templateUrl
:
'./info.component.html'
,
styleUrls
:
[
'./info.component.scss'
]
})
...
...
code/moya-angular/src/app/pages/info/info.module.ts
0 → 100644
View file @
091de5d
import
{
ViplistComponent
}
from
'./viplist/viplist.component'
;
import
{
OldMoyaModule
}
from
'./../old-moya/old-moya.module'
;
import
{
NgModule
}
from
'@angular/core'
;
import
{
CommonModule
}
from
'@angular/common'
;
import
{
InfoRoutingModule
}
from
'./info-routing.module'
;
import
{
InfoComponent
}
from
'./info.component'
;
import
{
InfoMenuComponent
}
from
'../../menu/info-menu/info-menu.component'
;
import
{
LeftMenuModule
}
from
'../../menu/left-menu/left-menu.module'
;
@
NgModule
({
imports
:
[
CommonModule
,
InfoRoutingModule
,
LeftMenuModule
,
OldMoyaModule
],
declarations
:
[
InfoComponent
,
InfoMenuComponent
,
ViplistComponent
]
})
export
class
InfoModule
{
}
code/moya-angular/src/app/pages/login/login-routing.module.ts
0 → 100644
View file @
091de5d
import
{
NgModule
}
from
'@angular/core'
;
import
{
Routes
,
RouterModule
}
from
'@angular/router'
;
import
{
LoginComponent
}
from
'./login.component'
;
const
routes
:
Routes
=
[
{
path
:
''
,
component
:
LoginComponent
}
];
@
NgModule
({
imports
:
[
RouterModule
.
forChild
(
routes
)],
exports
:
[
RouterModule
]
})
export
class
LoginRoutingModule
{
}
code/moya-angular/src/app/pages/login/login.component.css
0 → 100644
View file @
091de5d
File mode changed
code/moya-angular/src/app/pages/login/login.component.html
0 → 100644
View file @
091de5d
<div>
Login works!
</div>
\ No newline at end of file
code/moya-angular/src/app/pages/login/login.component.spec.ts
0 → 100644
View file @
091de5d
import
{
async
,
ComponentFixture
,
TestBed
}
from
'@angular/core/testing'
;
import
{
LoginComponent
}
from
'./login.component'
;
describe
(
'LoginComponent'
,
()
=>
{
let
component
:
LoginComponent
;
let
fixture
:
ComponentFixture
<
LoginComponent
>
;
beforeEach
(
async
(()
=>
{
TestBed
.
configureTestingModule
({
declarations
:
[
LoginComponent
]
})
.
compileComponents
();
}));
beforeEach
(()
=>
{
fixture
=
TestBed
.
createComponent
(
LoginComponent
);
component
=
fixture
.
componentInstance
;
fixture
.
detectChanges
();
});
it
(
'should create'
,
()
=>
{
expect
(
component
).
toBeTruthy
();
});
});
code/moya-angular/src/app/pages/login/login.component.ts
0 → 100644
View file @
091de5d
import
{
Component
,
OnInit
}
from
'@angular/core'
;
@
Component
({
selector
:
'moya-login'
,
templateUrl
:
'./login.component.html'
,
styleUrls
:
[
'./login.component.css'
]
})
export
class
LoginComponent
implements
OnInit
{
constructor
()
{
}
ngOnInit
()
{
}
}
code/moya-angular/src/app/pages/login/login.module.ts
0 → 100644
View file @
091de5d
import
{
LoginRoutingModule
}
from
'./login-routing.module'
;
import
{
NgModule
}
from
'@angular/core'
;
import
{
CommonModule
}
from
'@angular/common'
;
import
{
LoginComponent
}
from
'./login.component'
;
import
{
TopMenuComponent
}
from
'../../menu/top-menu/top-menu.component'
;
@
NgModule
({
imports
:
[
CommonModule
,
LoginRoutingModule
],
declarations
:
[
LoginComponent
,
TopMenuComponent
]
})
export
class
LoginModule
{
}
code/moya-angular/src/app/pages/old-moya/old-moya.module.ts
0 → 100644
View file @
091de5d
import
{
PipesModule
}
from
'./../../shared/pipes/pipes.module'
;
import
{
OldMoyaComponent
}
from
'./old-moya.component'
;
import
{
NgModule
}
from
'@angular/core'
;
import
{
CommonModule
}
from
'@angular/common'
;
@
NgModule
({
imports
:
[
CommonModule
,
PipesModule
.
forRoot
()
],
declarations
:
[
OldMoyaComponent
],
exports
:
[
OldMoyaComponent
]
})
export
class
OldMoyaModule
{
}
code/moya-angular/src/app/pages/user/user-routing.module.ts
0 → 100644
View file @
091de5d
import
{
OldMoyaComponent
}
from
'./../old-moya/old-moya.component'
;
import
{
UserMenuComponent
}
from
'./../../menu/user-menu/user-menu.component'
;
import
{
NgModule
}
from
'@angular/core'
;
import
{
Routes
,
RouterModule
}
from
'@angular/router'
;
import
{
UserComponent
}
from
'./user.component'
;
const
routes
:
Routes
=
[
{
path
:
''
,
pathMatch
:
'full'
,
component
:
UserComponent
},
{
path
:
''
,
component
:
UserMenuComponent
,
outlet
:
'left-menu'
},
{
path
:
'old'
,
component
:
OldMoyaComponent
}
];
@
NgModule
({
imports
:
[
RouterModule
.
forChild
(
routes
)],
exports
:
[
RouterModule
]
})
export
class
UserRoutingModule
{
}
code/moya-angular/src/app/pages/user/user.component.ts
View file @
091de5d
import
{
Component
,
OnInit
}
from
'@angular/core'
;
@
Component
({
selector
:
'
app
-user'
,
selector
:
'
moya
-user'
,
templateUrl
:
'./user.component.html'
,
styleUrls
:
[
'./user.component.scss'
]
})
...
...
code/moya-angular/src/app/pages/user/user.module.ts
0 → 100644
View file @
091de5d
import
{
PipesModule
}
from
'./../../shared/pipes/pipes.module'
;
import
{
OldMoyaModule
}
from
'./../old-moya/old-moya.module'
;
import
{
NgModule
}
from
'@angular/core'
;
import
{
CommonModule
}
from
'@angular/common'
;
import
{
UserRoutingModule
}
from
'./user-routing.module'
;
import
{
UserComponent
}
from
'./user.component'
;
import
{
UserMenuComponent
}
from
'../../menu/user-menu/user-menu.component'
;
import
{
LeftMenuModule
}
from
'../../menu/left-menu/left-menu.module'
;
import
{
TranslateModule
}
from
'@ngx-translate/core'
;
@
NgModule
({
imports
:
[
CommonModule
,
UserRoutingModule
,
LeftMenuModule
,
OldMoyaModule
,
TranslateModule
.
forRoot
()
],
declarations
:
[
UserComponent
,
UserMenuComponent
]
})
export
class
UserModule
{
}
code/moya-angular/src/app/shared/pipes/pipes.module.ts
0 → 100644
View file @
091de5d
import
{
SafePipe
}
from
'./safe.pipe'
;
import
{
NgModule
}
from
'@angular/core'
;
import
{
CommonModule
}
from
'@angular/common'
;
@
NgModule
({
imports
:
[
CommonModule
],
declarations
:
[
SafePipe
],
exports
:
[
SafePipe
]
})
export
class
PipesModule
{
static
forRoot
()
{
return
{
ngModule
:
PipesModule
,
providers
:
[],
};
}
}
code/moya-angular/src/app/test/test.component.ts
View file @
091de5d
import
{
Component
,
OnInit
,
Input
}
from
'@angular/core'
;
@
Component
({
selector
:
'
app
-test'
,
selector
:
'
moya
-test'
,
templateUrl
:
'./test.component.html'
,
styleUrls
:
[
'./test.component.scss'
]
})
...
...
code/moya-angular/src/index.html
View file @
091de5d
...
...
@@ -7,8 +7,7 @@
<base
href=
"/MoyaNG/"
>
<link
rel=
"icon"
type=
"image/x-icon"
href=
"favicon.ico"
>
</head>
<body>
<
app-root>
Welcome to new MOYA
</app
-root>
<
moya-root>
Welcome to new MOYA
</moya
-root>
</body>
</html>
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