angular - Get value observable directly without subscribing to it -
i have activatedroute
instance 'route'
alert(this.route.data)
gets me [object object]
.
thats route configuration object:
{ path: 'create', component: mycomponent, data :{ firstname: 'pascal'} },
i want directly firstname within component!
how can that?
when have activated route there not need subscribe static data, how data then?
Comments
Post a Comment