Question: How do I create an APK installer for mobile without the react native simulator? This is what happened when I tried to install the APK on Android.

[![enter image description here](https://i.stack.imgur.com/MJ179.png)](https://i.stack.imgur.com/MJ179.png)

Answer: 
**UPDATE** *Original question is about Angular 2 CLI. This doesn't work for curent Angular version!*

1. Run `ng init --routing`
2. And answer **no** every question from CLI.
By this way you will get *app-routing.module.ts*.
3. Add `import { AppRoutingModule } from './app-routing.module';`

and `imports: [AppRoutingModule]` to your *app.module.ts*

4. **Profit!** You get the same routing you would get if you would create routing with Angular CLI from the start.
**update on the accepted answer** 

make sure to follow below points:

**1>** 
make sure that `<base href="/">` is added inside index.html

```
    <html>
    <head>
    <base href="/" />
    <title>Angular Demo</title>

```

**2>**
Add router outlet in ur app.component.html file `<router-outlet></router-outlet>`

```
    div style="text-align:center">
    <h1>
    Welcome to MyApp
    </h1>
    <img width="300" alt="Angular Logo" src="data:image/svg+xml;....">
    </div>
    <router-outlet></router-outlet>

```

* router outlet tells the router where to display routed view.

**3>** Remember to add AppRoutingModule to the "imports" section of your @NgModule decorator in app.module.ts too

```
        @NgModule({
      imports: [
       AppRoutingModule
      ],
      declarations: [
        AppComponent,
      ],
      bootstrap: [ AppComponent ]
    })
    export class AppModule { }

```