Answer the question
In order to leave comments, you need to log in
How to make routing on asp.net webforms + angularjs transition from one page to another with a parameter?
There is a task: you need to go from the page of organizations with a table by clicking on the button to the page with a table of users and this table of users should be filtered by the organization whose id we passed to the routesparams. Can this be done somehow on angularjs + asp.net web forms?
The link should look like this: localhost/users?org=123
Answer the question
In order to leave comments, you need to log in
Use full web api and full js js or just angular. Don't try crossbreeding web forms with angular. Angular elegantly performs various routing and forwarding on its own.
ActivatedRoute holds the router's state tree in Angular's memory.
constructor(private activatedRouter:ActivatedRoute) { }
ngOnInit(): void {
console.log(this.activatedRouter.snapshot.params['id']);
}
[routerLink]="['/post', post.id]"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question