I'm trying to create an application with angular 2. I want to send the data to route from my class.
Code
@RouteConfig([
{
name: 'Slider',
component: thumbnail_gallery ,
path: '/slider/:id' ,
data : model
}
])
export class Watch extends Ext implements OnDestroy{
public model: any; <=== i want pass this from route
}
How can I do this?