new device feature module

pull/1/head
Chris Veilleux 2018-12-17 13:44:56 -06:00
parent c3bc6616a0
commit 4111ddcaf9
6 changed files with 35 additions and 0 deletions

View File

@ -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 }

View File

@ -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
],

View File

@ -0,0 +1,3 @@
<p>
device works!
</p>

View File

@ -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() {
}
}

View File

@ -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 { }