2 | © Vijay Dharap, Infosys, 2018 3 |
4 | -------------------------------------------------------------------------------- /src/app/components/footer/footer.component.scss: -------------------------------------------------------------------------------- 1 | p { 2 | text-align: center; 3 | margin: 0 auto; 4 | } -------------------------------------------------------------------------------- /src/app/components/footer/footer.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-footer', 5 | templateUrl: './footer.component.html', 6 | styleUrls: ['./footer.component.scss'] 7 | }) 8 | export class FooterComponent implements OnInit { 9 | constructor() {} 10 | 11 | ngOnInit() {} 12 | } 13 | -------------------------------------------------------------------------------- /src/app/components/header/header.component.html: -------------------------------------------------------------------------------- 1 |2 | page-not-found works! 3 |
4 | -------------------------------------------------------------------------------- /src/app/components/page-not-found/page-not-found.component.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Infosys/enterprise-angular-seed/75bd93c722696e5cadcabc2b5524c99bb542fa9d/src/app/components/page-not-found/page-not-found.component.scss -------------------------------------------------------------------------------- /src/app/components/page-not-found/page-not-found.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-page-not-found', 5 | templateUrl: './page-not-found.component.html', 6 | styleUrls: ['./page-not-found.component.scss'] 7 | }) 8 | export class PageNotFoundComponent implements OnInit { 9 | constructor() {} 10 | 11 | ngOnInit() {} 12 | } 13 | -------------------------------------------------------------------------------- /src/app/demo/chartist-demo/chartist-demo-routing.module.ts: -------------------------------------------------------------------------------- 1 | import { BasicChartistComponent } from './components/basic-chartist/basic-chartist.component'; 2 | import { NgModule } from '@angular/core'; 3 | import { Routes, RouterModule } from '@angular/router'; 4 | 5 | const routes: Routes = [{ path: '', component: BasicChartistComponent }]; 6 | 7 | @NgModule({ 8 | imports: [RouterModule.forChild(routes)], 9 | exports: [RouterModule] 10 | }) 11 | export class ChartistDemoRoutingModule {} 12 | -------------------------------------------------------------------------------- /src/app/demo/chartist-demo/chartist-demo.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { CommonModule } from '@angular/common'; 3 | import { ChartistModule } from 'ng-chartist'; 4 | 5 | import { ChartistDemoRoutingModule } from './chartist-demo-routing.module'; 6 | import { BasicChartistComponent } from './components/basic-chartist/basic-chartist.component'; 7 | 8 | @NgModule({ 9 | imports: [CommonModule, ChartistModule, ChartistDemoRoutingModule], 10 | declarations: [BasicChartistComponent] 11 | }) 12 | export class ChartistDemoModule {} 13 | -------------------------------------------------------------------------------- /src/app/demo/chartist-demo/components/basic-chartist/basic-chartist.component.html: -------------------------------------------------------------------------------- 1 |2 | Chartist Line Chart 3 |
4 |2 | demo-landing works!!!! 3 |
4 | -------------------------------------------------------------------------------- /src/app/demo/components/demo-landing/demo-landing.component.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Infosys/enterprise-angular-seed/75bd93c722696e5cadcabc2b5524c99bb542fa9d/src/app/demo/components/demo-landing/demo-landing.component.scss -------------------------------------------------------------------------------- /src/app/demo/components/demo-landing/demo-landing.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-demo-landing', 5 | templateUrl: './demo-landing.component.html', 6 | styleUrls: ['./demo-landing.component.scss'] 7 | }) 8 | export class DemoLandingComponent implements OnInit { 9 | constructor() {} 10 | 11 | ngOnInit() {} 12 | } 13 | -------------------------------------------------------------------------------- /src/app/demo/demo-routing.module.ts: -------------------------------------------------------------------------------- 1 | import { DemoLandingComponent } from './components/demo-landing/demo-landing.component'; 2 | import { NgModule } from '@angular/core'; 3 | import { Routes, RouterModule } from '@angular/router'; 4 | 5 | const routes: Routes = [ 6 | { path: '', component: DemoLandingComponent }, 7 | { path: 'chartist', loadChildren: './chartist-demo/chartist-demo.module#ChartistDemoModule' } 8 | /* { path: 'json-form', loadChildren: './json-form-demo/json-form-demo.module#JsonFormDemoModule' } */ 9 | ]; 10 | 11 | @NgModule({ 12 | imports: [RouterModule.forChild(routes)], 13 | exports: [RouterModule] 14 | }) 15 | export class DemoRoutingModule {} 16 | -------------------------------------------------------------------------------- /src/app/demo/demo.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { CommonModule } from '@angular/common'; 3 | 4 | import { DemoRoutingModule } from './demo-routing.module'; 5 | import { DemoLandingComponent } from './components/demo-landing/demo-landing.component'; 6 | import { JsonFormDemoModule } from '../demo/json-form-demo/json-form-demo.module'; 7 | 8 | @NgModule({ 9 | imports: [CommonModule, DemoRoutingModule, JsonFormDemoModule], 10 | declarations: [DemoLandingComponent] 11 | }) 12 | export class DemoModule {} 13 | -------------------------------------------------------------------------------- /src/app/demo/json-form-demo/components/json-form/json-form.component.html: -------------------------------------------------------------------------------- 1 |2 | json-form works! 3 |
4 |