These are chat archives for angular/angular-2-ionic-2

12th
Nov 2016
jhon2307
@jhon2307
Nov 12 2016 01:24
someone have worked with angular2 and firebase?
Thierry
@devbieres
Nov 12 2016 21:02
Hi,
I try to used a angular2 app in ionic2 project but I've troubled with the router.
Mohit kumar Bajoria
@mbj36
Nov 12 2016 21:31
@devbieres can you share what issue are u facing ?
Thierry
@devbieres
Nov 12 2016 21:32
@mbj36 I've got this error : "No provider for Router!"
@mbj36 My apps works fine with ng serve. I copied the app struc in a new Ionic2 project.
Mohit kumar Bajoria
@mbj36
Nov 12 2016 21:36
ROUTER_PROVIDERS add this to your bootstrap in component file
or wherever your bootstrap is present
Thierry
@devbieres
Nov 12 2016 21:44
@mbj36 I've tried but import is not working ...
Mohit kumar Bajoria
@mbj36
Nov 12 2016 21:45
Is this the new error ?
Or the same one ?
Thierry
@devbieres
Nov 12 2016 21:46
a new one directly in typescript "compilation"
Mohit kumar Bajoria
@mbj36
Nov 12 2016 21:47
Error details ?
Thierry
@devbieres
Nov 12 2016 21:47
import { ROUTER_PROVIDERS } from '@angular/router';
Module [...] has no exported member 'ROUTER_PROVIDERS'
if it can help you
Thierry
@devbieres
Nov 12 2016 21:53
@mbj36 I've already update to this version. That's why I think there is something else ... but thanks for all your advice. Don't hesitate to continue ;)
Mohit kumar Bajoria
@mbj36
Nov 12 2016 21:55
:) @devbieres
Thierry
@devbieres
Nov 12 2016 21:56
I've also tried to include and export RouterModule in my SharedModule but I've stil the same error.
No provider for Router!
Mohit kumar Bajoria
@mbj36
Nov 12 2016 21:59
Upload code snippets here
Thierry
@devbieres
Nov 12 2016 22:00
Which code do you want ...
Mohit kumar Bajoria
@mbj36
Nov 12 2016 22:00
in which u are importing
Thierry
@devbieres
Nov 12 2016 22:01
I've just tried in app.module.ts
import { RouterModule } from '@angular/router';
[...]
 imports: [
    IonicModule.forRoot(MyApp)
    , RouterModule
    , SharedModule
]
and here the code that's break :
import { Router, ActivatedRoute } from '@angular/router';
constructor( private router: Router
                    , private route: ActivatedRoute
                    ){]
Thierry
@devbieres
Nov 12 2016 22:10
Ok ... Step by step :)
I think I solve the routing trouble.
Now I've a new error :
Cannot find primary outlet to load 'IdentificationComponent'
Also solve ... next ?
JSponaugle
@JSponaugle
Nov 12 2016 22:31
Anyone know how to reload the parent page when you dismiss a modal
or better yet run a function on the parent page when the modal is dismissed