Angular 4 - Pass component input from route -


i'm trying figure out how pass parameter component when declaring routes.

{       path: 'registration',      component: registrationcomponent,      data: { title: 'registration' },      canactivate: [guestonlyguard]    }        export class registrationcomponent implements oninit {    @input() mode: string = 'default';    @input() showsubmitbtn: boolean = true;    @input() showloginnavigationlink: boolean = true;    @output('oncomplete') completed: eventemitter<userregistrationinfo> = new eventemitter<userregistrationinfo>();  /...... implementation........./  }

i want pass specific mode registration component when component loaded route.


Comments

Popular posts from this blog

PHP and MySQL WP -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

go - golang pprof for c library code -