# Examples for ionic with angular 2 router

**URL:** <https://forum.ionicframework.com/t/examples-for-ionic-with-angular-2-router/45186>\
**Category:** ionic-v3\
**Created:** [March 1, 2016, 3:05pm UTC](https://forum.ionicframework.com/t/examples-for-ionic-with-angular-2-router/45186 "2016-03-01T15:05:12Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![matheo](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/matheo/32/91507_2.png) [@matheo](https://forum.ionicframework.com/u/matheo)\
**Post date:** [July 14, 2016, 5:33pm UTC](https://forum.ionicframework.com/t/examples-for-ionic-with-angular-2-router/45186/21 "2016-07-14T17:33:08Z")

</div>

The navigation on Ionic 2 wanted to be near to the way Native development works, and it’s pretty intuitive and easy to use IMHO. We’ll see how they integrate the Angular Router in the next releases.

---

<div class="post-metadata">

**Author:** ![mtrtm](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mtrtm/32/101866_2.png) [@mtrtm](https://forum.ionicframework.com/u/mtrtm)\
**Post date:** [July 21, 2016, 6:55pm UTC](https://forum.ionicframework.com/t/examples-for-ionic-with-angular-2-router/45186/22 "2016-07-21T18:55:52Z")

</div>

Hi,

I would like to know what is the status of integrating with the new `@angular/router` version 3.0.0-beta.2? Do you have any tentative dates yet, or a rough time frame? I consider using Ionic for a hybrid app, where the Web app interface is just as important as the mobile interface, and therefore _support for URL-navigation_ is key.

Furthermore, I would suspect that the `@angular/router` integration will still support a stack-based history, since that is how browsers usually organize their history.

---

<div class="post-metadata">

**Author:** ![matheo](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/matheo/32/91507_2.png) [@matheo](https://forum.ionicframework.com/u/matheo)\
**Post date:** [July 21, 2016, 7:11pm UTC](https://forum.ionicframework.com/t/examples-for-ionic-with-angular-2-router/45186/23 "2016-07-21T19:11:43Z")

</div>

We’re waiting news about the beta.11 milestone status from @mhartington, I’m not sure if router is included in the next release, only heard about performance improvements for sure.

---

<div class="post-metadata">

**Author:** ![mtrtm](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mtrtm/32/101866_2.png) [@mtrtm](https://forum.ionicframework.com/u/mtrtm)\
**Post date:** [July 21, 2016, 7:26pm UTC](https://forum.ionicframework.com/t/examples-for-ionic-with-angular-2-router/45186/24 "2016-07-21T19:26:15Z")

</div>

Thanks for the quick reply, @matheo. I guess I’ll have to give it another week and see then. Another reason I look forward to (or, think I need) the `@angular/router` integration is that the `canActivate` guards in the new Angular 2 router seem really helpful for implementing authentication and authorization for accessing particular components of an app ([https://angular.io/docs/ts/latest/guide/router.html#guards](https://angular.io/docs/ts/latest/guide/router.html#guards)).

---

<div class="post-metadata">

**Author:** ![matheo](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/matheo/32/91507_2.png) [@matheo](https://forum.ionicframework.com/u/matheo)\
**Post date:** [July 21, 2016, 7:36pm UTC](https://forum.ionicframework.com/t/examples-for-ionic-with-angular-2-router/45186/25 "2016-07-21T19:36:40Z")

</div>

Indeed, that’s cool stuff, we’ll see how the Ionic team integrates it, I trust em a lot because they have done an excellent job on this new version 🕶

---

<div class="post-metadata">

**Author:** ![itlr](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/itlr/32/97646_2.png) [@itlr](https://forum.ionicframework.com/u/itlr)\
**Post date:** [July 21, 2016, 11:58pm UTC](https://forum.ionicframework.com/t/examples-for-ionic-with-angular-2-router/45186/26 "2016-07-21T23:58:22Z")

</div>

I’m looking forward to using routing to

1. make debug easier by providing debug short cuts directly from the url, testability will be a lot easier, manual or automated
2. simplify navigation, using [routeLink]=’["/view/124"]’ on an ion-item under different contexts eliminates the need of writing handlers - often multiple times.

---

<div class="post-metadata">

**Author:** ![mburger81](https://avatars.discourse-cdn.com/v4/letter/m/bc8723/32.png) [@mburger81](https://forum.ionicframework.com/u/mburger81)\
**Post date:** [July 27, 2016, 5:22pm UTC](https://forum.ionicframework.com/t/examples-for-ionic-with-angular-2-router/45186/27 "2016-07-27T17:22:58Z")

</div>

No news about angular router?? We all still need it asap! 😕

---

<div class="post-metadata">

**Author:** ![linvi](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/linvi/32/102128_2.png) [@linvi](https://forum.ionicframework.com/u/linvi)\
**Post date:** [August 9, 2016, 12:59am UTC](https://forum.ionicframework.com/t/examples-for-ionic-with-angular-2-router/45186/28 "2016-08-09T00:59:14Z")

</div>

Same here, it would be interesting to have angular router examples or at least have the server able to serve index.html regardless of the route provided.

---

<div class="post-metadata">

**Author:** ![mburger81](https://avatars.discourse-cdn.com/v4/letter/m/bc8723/32.png) [@mburger81](https://forum.ionicframework.com/u/mburger81)\
**Post date:** [August 9, 2016, 5:55am UTC](https://forum.ionicframework.com/t/examples-for-ionic-with-angular-2-router/45186/29 "2016-08-09T05:55:44Z")

</div>

@linvi the angular2 router will not be integrated into ionic2, but they will integrate a new routing system coming shortly.

---

<div class="post-metadata">

**Author:** ![morrisonbrett](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/morrisonbrett/32/101358_2.png) [@morrisonbrett](https://forum.ionicframework.com/u/morrisonbrett)\
**Post date:** [August 25, 2016, 4:32pm UTC](https://forum.ionicframework.com/t/examples-for-ionic-with-angular-2-router/45186/30 "2016-08-25T16:32:31Z")

</div>

Any word on when this is coming? Based on this commit history, I don’t see it being worked on: [https://github.com/driftyco/ionic/compare/v2.0.0-beta.11...master](https://github.com/driftyco/ionic/compare/v2.0.0-beta.11...master)

---

<div class="post-metadata">

**Author:** ![mburger81](https://avatars.discourse-cdn.com/v4/letter/m/bc8723/32.png) [@mburger81](https://forum.ionicframework.com/u/mburger81)\
**Post date:** [August 26, 2016, 5:55am UTC](https://forum.ionicframework.com/t/examples-for-ionic-with-angular-2-router/45186/31 "2016-08-26T05:55:11Z")

</div>

@brandyshea can you share some more infos with us?

---

<div class="post-metadata">

**Author:** ![gaurav](https://avatars.discourse-cdn.com/v4/letter/g/b487fb/32.png) [@gaurav](https://forum.ionicframework.com/u/gaurav)\
**Post date:** [August 29, 2016, 8:34am UTC](https://forum.ionicframework.com/t/examples-for-ionic-with-angular-2-router/45186/32 "2016-08-29T08:34:47Z")

</div>

@brandyshea @max @adam How we will be handling URLs in PWA apps and also i think its needed for SEO also for mobile websites !  
Can anyone from Ionic team comment over this about how we will be going about this in future any roadmap for this ?

---

<div class="post-metadata">

**Author:** ![gaurav](https://avatars.discourse-cdn.com/v4/letter/g/b487fb/32.png) [@gaurav](https://forum.ionicframework.com/u/gaurav)\
**Post date:** [August 31, 2016, 12:14pm UTC](https://forum.ionicframework.com/t/examples-for-ionic-with-angular-2-router/45186/33 "2016-08-31T12:14:41Z")

</div>

@mtrtm Can you please advice something on Authorization if you tried it with Ionic ? As, still now we don’t have much update on angular router.

---

<div class="post-metadata">

**Author:** ![mtrtm](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mtrtm/32/101866_2.png) [@mtrtm](https://forum.ionicframework.com/u/mtrtm)\
**Post date:** [August 31, 2016, 6:02pm UTC](https://forum.ionicframework.com/t/examples-for-ionic-with-angular-2-router/45186/34 "2016-08-31T18:02:41Z")

</div>

Hi @gaurav,

I haven’t started implementing the authorization stuff yet, exactly because I’m waiting for the integration of the new Angular 2 router in the Ionic framework. I’ve done back-end development in the mean time.

---

<div class="post-metadata">

**Author:** ![gaurav](https://avatars.discourse-cdn.com/v4/letter/g/b487fb/32.png) [@gaurav](https://forum.ionicframework.com/u/gaurav)\
**Post date:** [August 31, 2016, 6:04pm UTC](https://forum.ionicframework.com/t/examples-for-ionic-with-angular-2-router/45186/35 "2016-08-31T18:04:19Z")

</div>

thanks @mtrtm for prompt reply 🙂  
I am hoping to see updates, if you get any please update here for all of us.

---

<div class="post-metadata">

**Author:** ![developersnepal](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/developersnepal/32/100506_2.png) [@developersnepal](https://forum.ionicframework.com/u/developersnepal)\
**Post date:** [September 19, 2016, 7:39am UTC](https://forum.ionicframework.com/t/examples-for-ionic-with-angular-2-router/45186/36 "2016-09-19T07:39:54Z")

</div>

Hello Guys any update on this issue? Is routing back yet? Or any workaround?

---

<div class="post-metadata">

**Author:** ![iamdash](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/iamdash/32/103107_2.png) [@iamdash](https://forum.ionicframework.com/u/iamdash)\
**Post date:** [September 19, 2016, 2:08pm UTC](https://forum.ionicframework.com/t/examples-for-ionic-with-angular-2-router/45186/37 "2016-09-19T14:08:01Z")

</div>

Waiting for update on routing too.

---

<div class="post-metadata">

**Author:** ![odorakel](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/odorakel/32/101000_2.png) [@odorakel](https://forum.ionicframework.com/u/odorakel)\
**Post date:** [September 23, 2016, 6:34pm UTC](https://forum.ionicframework.com/t/examples-for-ionic-with-angular-2-router/45186/38 "2016-09-23T18:34:25Z")

</div>

Me too - I would like to use Ionic 2 also for regular web apps and not only mobile applications ☹

---

<div class="post-metadata">

**Author:** ![mburger81](https://avatars.discourse-cdn.com/v4/letter/m/bc8723/32.png) [@mburger81](https://forum.ionicframework.com/u/mburger81)\
**Post date:** [September 28, 2016, 7:40pm UTC](https://forum.ionicframework.com/t/examples-for-ionic-with-angular-2-router/45186/39 "2016-09-28T19:40:36Z")

</div>

It seems in rc.0 there is no new ionic url router

So we still don’t know what’s going on or what we could expect.

---

<div class="post-metadata">

**Author:** ![mburger81](https://avatars.discourse-cdn.com/v4/letter/m/bc8723/32.png) [@mburger81](https://forum.ionicframework.com/u/mburger81)\
**Post date:** [September 30, 2016, 10:21am UTC](https://forum.ionicframework.com/t/examples-for-ionic-with-angular-2-router/45186/40 "2016-09-30T10:21:29Z")

</div>

See this link for more details about router

> [@New Angular2 Router support in Ionic](https://forum.ionicframework.com/t/new-angular2-router-support-in-ionic2/56847/14):
>
> Hey guys! Just need to chime in here quickly. The router implementation is in the codebase, it was just not documented/user ready for this release. We understand the frustration, and appreciate yall hanging in there. As for it’s status, it’s code complete. We have a few internal folks testing it out at the moment to make sure everything works as expected, and it will be in the next RC. So long story short… Router/Deep Linker is done. We’re doing testing before it gets released released. …

[Previous page](https://forum.ionicframework.com/t/examples-for-ionic-with-angular-2-router/45186.md?page=1)

[Next page](https://forum.ionicframework.com/t/examples-for-ionic-with-angular-2-router/45186.md?page=3)
