I have a method add()
on component that is called in this route: 'model/:id'
.
Now, i want to add a new model, and for do this, need change the route to: 'model/0'
;
add(){
this.route.navigate(['model','0']);
}
I need to do this with the 'model' route dynamically, because the route can change, it's possible ?