Monthly Archives: May 2017

add child to a route

use {path:’xx’, component:xxx, children:[{…}]} the {path:’xx’, loadChildren:’…’} will not make it children, instead it will be the peer prefix based matching – it will match the url segment 1 by 1 Advertisements

Posted in angular4 | Leave a comment

apply custom pipe to whole app

create the pipe create a module and import/export the pipe import { KeysPipe } from ‘../keys.pipe’; @NgModule({ imports: [ CommonModule ], declarations: [KeysPipe], exports: [KeysPipe] }) for each app module, import the pipe module import { CpipeModule } from ‘app/util/cpipe/cpipe.module’; … Continue reading

Posted in angular4 | Leave a comment

support IE

go to polyfills.ts and uncomments those lines for IE /** IE9, IE10 and IE11 requires all of the following polyfills. **/ // import ‘core-js/es6/symbol’; // import ‘core-js/es6/object’; // import ‘core-js/es6/function’; // import ‘core-js/es6/parse-int’; // import ‘core-js/es6/parse-float’; // import ‘core-js/es6/number’; // … Continue reading

Posted in angular4, Uncategorized | Leave a comment

config & service for each module or for app?

config does each module need it’s own config? the routing is for its own

Posted in Design, Uncategorized | Leave a comment

dynamically load all component or not?

benefit fully configurable easy for change problem where to put the component logic? not able to use the good editor not efficient for programming => how many changes can happen? is it frequent? not many changes the build will go … Continue reading

Posted in Design, Uncategorized | Leave a comment

ds for menu

ds label code parent (level) path parameter data component loadChildren canLoad queryParams children how to format the configuration? how is the label translated? code style camel dash convert code from label? replace space with “-“ all low case?

Posted in Design | Leave a comment