AngularJS Tutorial 22- $routeParams

preview_player
Показать описание
In this tutorial we will be covering $routeParams in AngularJs.
In previous video we have learnt how to create Routes and now we will learn how you can pass parameters to the routes.

Route parameters will allow you to pass dynamic value to the route that will change depending on the request. So to make parameterised route you need to tell your route that it will accept parameter. So to do so you need to create your route along with parameters

when you prefix any variable with :(colon) it become route paramters.

Now to retrieve the value of parameter you need to use one service called $routeParams .

$routeParams service will return a object that will hold all parameters in the object in form of key and value.
Рекомендации по теме
Комментарии
Автор

really good tutorial. helped me a lot. simple example to clarify a complex thing.

rameshmunjal
Автор

Nice base on Routing .. Upload about Custom Directive as well ..Thanks

letslearn
Автор

How to show more details of user in route parameters

ajaykumar-nxkb
Автор

will this work in table record as well?

toshirebootyx
Автор

hai mam i have doubt .. how to ( mysql data) dynamically pass the id in url and get id & view the next page using routeparams. i can't dynamically access the id in routeparams..could you send source code or upload tutorial its very help full for me... thnx :)

sivakumar-tkqr
Автор

please upload your folder in this session

jayrathod
join shbcf.ru