App routing 92/75392/1
authorArundathi Patil <arundpil@in.ibm.com>
Mon, 7 Jan 2019 16:54:41 +0000 (22:24 +0530)
committerIBM602-PC0F1E3C\Arundathi <arundpil@in.ibm.com>
Mon, 7 Jan 2019 16:55:09 +0000 (22:25 +0530)
added application routes

Issue-ID: CCSDK-816
Change-Id: Iba52d17aeabdb767c52cf6f8d56bf0bca1ae031c
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
cds-ui/client/src/app/app-routing.module.ts
cds-ui/client/src/app/app.module.ts
cds-ui/client/src/app/common/shared/shared.module.ts

index 8a33f22..22e4887 100644 (file)
@@ -21,28 +21,20 @@ limitations under the License.
 
 import { NgModule } from '@angular/core';
 import { Routes, RouterModule } from '@angular/router';
-// import { AboutComponent } from './common/shared/components/about/about.component';
-// import { PageNotFoundComponent } from './common/shared/components/page-not-found/page-not-found.component';
-// import { SelectTemplateComponent } from './feature-module/select-template/select-template.component';
-// import { HomeComponent } from './common/shared/components/home/home.component';
+import { HomeComponent } from './common/shared/components/home/home.component';
 
 
 const routes: Routes = [
-// {
-//   path: '',
-//   component: HomeComponent,
-//   children: [
-//     {
-//       path: '',
-//       component: AboutComponent
-
-//     },
-//     {
-//       path: 'controllerBlueprint',
-//       loadChildren: './feature-module/controller-blueprint/controller-blueprint.module#ControllerBlueprintModule'
-//     }
-//   ]
-// }
+{
+  path: '',
+  component: HomeComponent,
+   children: [
+    {
+      path: 'blueprint',
+      loadChildren: './feature-modules/blueprint/blueprint.module#BlueprintModule'
+    }
+  ]
+}
 ];
 
 @NgModule({
index 25ea016..d61731d 100644 (file)
@@ -30,6 +30,9 @@ import { HttpClientModule } from '@angular/common/http';
 
 import { AppRoutingModule } from './app-routing.module';
 import { AppComponent } from './app.component';
+import { SharedModule } from './common/shared/shared.module';
+
+
 // import { blueprintReducer } from './common/store/reducers/blueprint.reducer';
 // import { HeaderComponent, AboutComponent, PageNotFoundComponent, HomeComponent } from './common/shared/components/index';
 // import { SharedModule } from './common/shared/shared.module';
@@ -65,7 +68,8 @@ import { AppComponent } from './app.component';
     MatRadioModule, 
     MatFormFieldModule, 
     MatStepperModule,
-    HttpClientModule
+    HttpClientModule,
+    SharedModule
   ],
   providers: [],
   bootstrap: [AppComponent]
index 202a418..e3760b0 100644 (file)
@@ -21,18 +21,18 @@ limitations under the License.
 
 import { NgModule } from '@angular/core';
 import { CommonModule } from '@angular/common';
-// import { HomeComponent } from './components/home/home.component';
+import { HomeComponent } from './components/home/home.component';
 import { CBAWizardComponent } from './components/cbawizard/cbawizard.component';
 import { MatToolbarModule,MatIconModule, MatButtonModule, MatSidenavModule,  MatListModule, MatGridListModule, MatCardModule, MatMenuModule, MatTableModule, MatPaginatorModule, MatSortModule, MatInputModule, MatSelectModule, MatRadioModule, MatFormFieldModule, MatStepperModule} from '@angular/material';
 import { RouterModule } from "@angular/router";
 
 @NgModule({
   declarations: [
-   // HomeComponent,
+    HomeComponent,
     CBAWizardComponent
   ],
   exports: [
-   // HomeComponent,
+    HomeComponent,
     CBAWizardComponent
   ],
   imports: [