Nativescript-angular: where RouterExtensions?

Created on 1 Aug 2016  路  4Comments  路  Source: NativeScript/nativescript-angular

_From @peirancao on July 30, 2016 5:12_

https://docs.nativescript.org/angular/core-concepts/navigation-angular.html#navigation-options

_Copied from original issue: NativeScript/NativeScript#2534_

Most helpful comment

I'm found "RouterExtensions" on "nativescript-angular/router", look this code:

import {RouterExtensions} from "nativescript-angular/router";

export class YourComponent {
    public constructor (private routerExtensions: RouterExtensions) {
        this.page.actionBarHidden = true;
    }
}

All 4 comments

_From @tsonevn on August 1, 2016 6:22_

Hi @peirancao,

Could you provide some more info about your problem. It would also help if you could give me some sample project.

Regards,
@tsonevn

Duplicate of #380

I'm found "RouterExtensions" on "nativescript-angular/router", look this code:

import {RouterExtensions} from "nativescript-angular/router";

export class YourComponent {
    public constructor (private routerExtensions: RouterExtensions) {
        this.page.actionBarHidden = true;
    }
}

Thanks @diegomelo182 from saving my time digging into NativeScript code to search for the modules. The documentation could improve to specify where to import RouterExtensions

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zhaoyouliang picture zhaoyouliang  路  88Comments

jlooper picture jlooper  路  57Comments

ignaciofuentes picture ignaciofuentes  路  31Comments

NickIliev picture NickIliev  路  39Comments

morzyns picture morzyns  路  39Comments