From 6c32c195884f1d07085c6949eaf2d186203b4f19 Mon Sep 17 00:00:00 2001 From: Arundathi Patil Date: Mon, 7 Jan 2019 22:35:27 +0530 Subject: Blueprint routing Added routes to blueprint module Issue-ID: CCSDK-816 Change-Id: I67b7fb21e85b04a77c3c0a8a6878420f8fd0855d Signed-off-by: Arundathi Patil --- .../blueprint/blueprint-routing.module.ts | 24 +++++++++++++++++++++- .../blueprint/blueprint.component.html | 5 ++--- .../feature-modules/blueprint/blueprint.module.ts | 6 +++++- 3 files changed, 30 insertions(+), 5 deletions(-) (limited to 'cds-ui') diff --git a/cds-ui/client/src/app/feature-modules/blueprint/blueprint-routing.module.ts b/cds-ui/client/src/app/feature-modules/blueprint/blueprint-routing.module.ts index d0ce0c68d..26ffa1236 100644 --- a/cds-ui/client/src/app/feature-modules/blueprint/blueprint-routing.module.ts +++ b/cds-ui/client/src/app/feature-modules/blueprint/blueprint-routing.module.ts @@ -27,7 +27,29 @@ import { BlueprintComponent } from './blueprint.component'; const routes: Routes = [ { path: '', - component: BlueprintComponent + component: BlueprintComponent, + children: [ + { + path: '', + loadChildren: './select-template/select-template.module#SelectTemplateModule' + }, + { + path: 'selectTemplate', + loadChildren: './select-template/select-template.module#SelectTemplateModule' + }, + { + path: 'modifyTemplate', + loadChildren: './modify-template/modify-template.module#ModifyTemplateModule' + }, + { + path: 'testTemplate', + loadChildren: './test-template/test-template.module#TestTemplateModule' + }, + { + path: 'deployTemplate', + loadChildren: './deploy-template/deploy-template.module#DeployTemplateModule' + } + ] } ]; diff --git a/cds-ui/client/src/app/feature-modules/blueprint/blueprint.component.html b/cds-ui/client/src/app/feature-modules/blueprint/blueprint.component.html index 87d0acdf3..8778de4ce 100644 --- a/cds-ui/client/src/app/feature-modules/blueprint/blueprint.component.html +++ b/cds-ui/client/src/app/feature-modules/blueprint/blueprint.component.html @@ -16,6 +16,5 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ============LICENSE_END============================================ --> -

- blueprint works! -

+ + diff --git a/cds-ui/client/src/app/feature-modules/blueprint/blueprint.module.ts b/cds-ui/client/src/app/feature-modules/blueprint/blueprint.module.ts index 56f2b01d5..e10dd409f 100644 --- a/cds-ui/client/src/app/feature-modules/blueprint/blueprint.module.ts +++ b/cds-ui/client/src/app/feature-modules/blueprint/blueprint.module.ts @@ -21,16 +21,20 @@ limitations under the License. import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; + import { BlueprintComponent } from './blueprint.component'; import { BlueprintRoutingModule } from './blueprint-routing.module'; +import { SharedModule } from '../../../app/common/shared/shared.module'; + @NgModule({ declarations: [ BlueprintComponent ], imports: [ CommonModule, - BlueprintRoutingModule + BlueprintRoutingModule, + SharedModule ] }) export class BlueprintModule { } -- cgit 1.2.3-korg