new device feature module
parent
c3bc6616a0
commit
4111ddcaf9
|
@ -2,10 +2,12 @@ import { NgModule } from '@angular/core';
|
|||
import { Routes, RouterModule } from '@angular/router';
|
||||
|
||||
import { ProfileComponent } from './profile/profile.component';
|
||||
import { DeviceComponent } from './device/device.component';
|
||||
|
||||
// import { PageNotFoundComponent } from './page-not-found/page-not-found.component';
|
||||
|
||||
const routes: Routes = [
|
||||
{ path: 'device', component: DeviceComponent },
|
||||
{ path: 'profile', component: ProfileComponent },
|
||||
{ path: '', redirectTo: '/profile', pathMatch: 'full' },
|
||||
// { path: '**', component: PageNotFoundComponent }
|
||||
|
|
|
@ -7,6 +7,7 @@ import { AppRoutingModule } from './app-routing.module';
|
|||
import { AppComponent } from './app.component';
|
||||
import { GlobalnavModule } from 'globalnav';
|
||||
// import { PageNotFoundComponent } from './page-not-found/page-not-found.component';
|
||||
import { DeviceModule } from './device/device.module';
|
||||
import { ProfileModule } from './profile/profile.module';
|
||||
|
||||
@NgModule(
|
||||
|
@ -18,6 +19,7 @@ import { ProfileModule } from './profile/profile.module';
|
|||
BrowserAnimationsModule,
|
||||
GlobalnavModule,
|
||||
HttpClientModule,
|
||||
DeviceModule,
|
||||
ProfileModule,
|
||||
AppRoutingModule
|
||||
],
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
<p>
|
||||
device works!
|
||||
</p>
|
|
@ -0,0 +1,15 @@
|
|||
import { Component, OnInit } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'account-device',
|
||||
templateUrl: './device.component.html',
|
||||
styleUrls: ['./device.component.scss']
|
||||
})
|
||||
export class DeviceComponent implements OnInit {
|
||||
|
||||
constructor() { }
|
||||
|
||||
ngOnInit() {
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,13 @@
|
|||
import { NgModule } from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { DeviceComponent } from './device.component';
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
CommonModule
|
||||
],
|
||||
declarations: [
|
||||
DeviceComponent
|
||||
]
|
||||
})
|
||||
export class DeviceModule { }
|
Loading…
Reference in New Issue