How to use the nativescript-angular/router.RouterExtensions function in nativescript-angular

To help you get started, we’ve selected a few nativescript-angular examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github linfaservice / cloudgallery / app / common / util.js View on Github external
var year_s = String("0000" + year).slice(-4);
        var month_s = String("00" + month).slice(-2);
        var day_s = String("00" + day).slice(-2);
        var hour_s = String("00" + hour).slice(-2);
        var minute_s = String("00" + minute).slice(-2);
        var second_s = String("00" + second).slice(-2);
        var timestamp = year_s + month_s + day_s + hour_s + minute_s + second_s;
        return timestamp;
    };
    Util.prototype.isValidEmail = function (email) {
        var re = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
        return re.test(email);
    };
    Util = __decorate([
        core_1.Injectable(),
        __metadata("design:paramtypes", [router_2.RouterExtensions,
            router_1.Router])
    ], Util);
    return Util;
}());
exports.Util = Util;
github bradyhouse / house / fiddles / nativeScript / fiddle-0011-SqliteNg2 / puzzle / app / pages / level-three / level-three.component.js View on Github external
this.consoleLogMsg('level-three.component', 'onSkipLevelTap');
        this.onHighScore();
    };
    LevelThreeComponent.prototype.onNavBtnTap = function () {
        this._router.navigate([''], config_1.Config.transition);
    };
    return LevelThreeComponent;
}(base_1.Base));
LevelThreeComponent = __decorate([
    core_1.Component({
        selector: 'level-three',
        templateUrl: 'pages/level-three/level-three.component.html',
        styleUrls: ['pages/level-three/level-three-common.css', 'pages/level-three/level-three.css'],
        providers: [board_service_1.BoardService, score_service_1.ScoreService, state_service_1.StateService]
    }),
    __metadata("design:paramtypes", [router_1.RouterExtensions,
        page_1.Page,
        board_service_1.BoardService,
        score_service_1.ScoreService,
        state_service_1.StateService])
], LevelThreeComponent);
exports.LevelThreeComponent = LevelThreeComponent;
//# source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H1cblxuICBvblNraXBMZXZlbFRhcCgpOiB2b2lkIHtcbiAgICB0aGlzLmNvbnNvbGVMb2dNc2coJ2xldmVsLXRocmVlLmNvbXBvbmVudCcsICdvblNraXBMZXZlbFRhcCcpO1xuICAgIHRoaXMub25IaWdoU2NvcmUoKTtcbiAgfVxuXG4gIG9uTmF2QnRuVGFwKCk6IHZvaWQge1xuICAgIHRoaXMuX3JvdXRlci5uYXZpZ2F0ZShbJyddLCBDb25maWcudHJhbnNpdGlvbik7XG4gIH1cblxufVxuIl19
github mikebranstein / TheNativeScriptBook / Chapter16 / PetScrapbookAngular / app / views / home / home.component.js View on Github external
}
    HomeComponent.prototype.onContinueTap = function () {
        this.routerExtensions.navigate(["list"]);
    };
    HomeComponent.prototype.onAboutTap = function () {
        this.routerExtensions.navigate(["about"]);
    };
    return HomeComponent;
}());
HomeComponent = __decorate([
    core_1.Component({
        selector: "home",
        templateUrl: "views/home/home.html",
        styleUrls: ["views/home/home.css"]
    }),
    __metadata("design:paramtypes", [router_1.RouterExtensions])
], HomeComponent);
exports.HomeComponent = HomeComponent;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaG9tZS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJob21lLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLHNDQUEwQztBQUMxQyxzREFBK0Q7QUFPL0QsSUFBYSxhQUFhO0lBQ3hCLHVCQUFvQixnQkFBa0M7UUFBbEMscUJBQWdCLEdBQWhCLGdCQUFnQixDQUFrQjtJQUN0RCxDQUFDO0lBRUQscUNBQWEsR0FBYjtRQUNFLElBQUksQ0FBQyxnQkFBZ0IsQ0FBQyxRQUFRLENBQUMsQ0FBQyxNQUFNLENBQUMsQ0FBQyxDQUFDO0lBQzNDLENBQUM7SUFFRCxrQ0FBVSxHQUFWO1FBQ0UsSUFBSSxDQUFDLGdCQUFnQixDQUFDLFFBQVEsQ0FBQyxDQUFDLE9BQU8sQ0FBQyxDQUFDLENBQUM7SUFDNUMsQ0FBQztJQUNILG9CQUFDO0FBQUQsQ0FBQyxBQVhELElBV0M7QUFYWSxhQUFhO0lBTHpCLGdCQUFTLENBQUM7UUFDVCxRQUFRLEVBQUUsTUFBTTtRQUNoQixXQUFXLEVBQUUsc0JBQXNCO1FBQ25DLFNBQVMsRUFBRSxDQUFDLHFCQUFxQixDQUFDO0tBQ25DLENBQUM7cUNBRXNDLHlCQUFnQjtHQUQzQyxhQUFhLENBV3pCO0FBWFksc0NBQWEiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBDb21wb25lbnQgfSBmcm9tIFwiQGFuZ3VsYXIvY29yZVwiO1xuaW1wb3J0IHsgUm91dGVyRXh0ZW5zaW9ucyB9IGZyb20gXCJuYXRpdmVzY3JpcHQtYW5ndWxhci9yb3V0ZXJcIjsgXG5cbkBDb21wb25lbnQoe1xuICBzZWxlY3RvcjogXCJob21lXCIsXG4gIHRlbXBsYXRlVXJsOiBcInZpZXdzL2hvbWUvaG9tZS5odG1sXCIsXG4gIHN0eWxlVXJsczogW1widmlld3MvaG9tZS9ob21lLmNzc1wiXVxufSlcbmV4cG9ydCBjbGFzcyBIb21lQ29tcG9uZW50IHtcbiAgY29uc3RydWN0b3IocHJpdmF0ZSByb3V0ZXJFeHRlbnNpb25zOiBSb3V0ZXJFeHRlbnNpb25zKSB7IFxuICB9XG5cbiAgb25Db250aW51ZVRhcCgpOiB2b2lkIHtcbiAgICB0aGlzLnJvdXRlckV4dGVuc2lvbnMubmF2aWdhdGUoW1wibGlzdFwiXSk7IFxuICB9XG5cbiAgb25BYm91dFRhcCgpOiB2b2lkIHtcbiAgICB0aGlzLnJvdXRlckV4dGVuc2lvbnMubmF2aWdhdGUoW1wiYWJvdXRcIl0pOyBcbiAgfVxufVxuIl19
github bradyhouse / house / fiddles / nativeScript / fiddle-0011-SqliteNg2 / puzzle / app / pages / game / game.component.js View on Github external
};
    return GameComponent;
}(base_1.Base));
__decorate([
    core_1.ViewChild("container"),
    __metadata("design:type", core_1.ElementRef)
], GameComponent.prototype, "container", void 0);
GameComponent = __decorate([
    core_1.Component({
        selector: "my-app",
        templateUrl: "pages/game/game.component.html",
        providers: [state_service_1.StateService, score_service_1.ScoreService],
        styleUrls: ["pages/game/game-common.css", "pages/game/game.css"],
        encapsulation: core_1.ViewEncapsulation.None
    }),
    __metadata("design:paramtypes", [router_1.RouterExtensions,
        page_1.Page,
        score_service_1.ScoreService,
        state_service_1.StateService])
], GameComponent);
exports.GameComponent = GameComponent;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2FtZS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJnYW1lLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsSUFBTSxPQUFPLEdBQUcsT0FBTyxDQUFDLFlBQVksQ0FBQyxFQUNuQyxLQUFLLEdBQUcsT0FBTyxDQUFDLFVBQVUsQ0FBQyxDQUFDO0FBRTlCLHNDQUEwRjtBQUUxRixzREFBK0Q7QUFFL0QsZ0NBQTZCO0FBRzdCLDhDQUEyQztBQUMzQyxtQ0FBZ0M7QUFDaEMsa0VBQThEO0FBRzlELGtFQUE4RDtBQVU5RCxJQUFhLGFBQWE7SUFBUyxpQ0FBSTtJQVNyQyx1QkFBb0IsT0FBeUIsRUFDekIsS0FBVyxFQUNYLGFBQTJCLEVBQzNCLGFBQTJCO1FBSC9DLFlBSUUsaUJBQU8sU0FjUjtRQWxCbUIsYUFBTyxHQUFQLE9BQU8sQ0FBa0I7UUFDekIsV0FBSyxHQUFMLEtBQUssQ0FBTTtRQUNYLG1CQUFhLEdBQWIsYUFBYSxDQUFjO1FBQzNCLG1CQUFhLEdBQWIsYUFBYSxDQUFjO1FBRTdDLEtBQUksQ0FBQyxTQUFTLEdBQUcsSU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udCcsICdvblBsYXlUYXAnKTtcblxuICAgIHN3aXRjaCh0aGlzLmxldmVsKSB7XG4gICAgICBjYXNlIDM6XG4gICAgICAgIHRoaXMuX3JvdXRlci5uYXZpZ2F0ZShbJy9sZXZlbC10aHJlZSddLCBDb25maWcudHJhbnNpdGlvbldpdGhIaXN0b3J5KTtcbiAgICAgICAgYnJlYWs7XG4gICAgICBjYXNlIDI6XG4gICAgICAgIHRoaXMuX3JvdXRlci5uYXZpZ2F0ZShbJy9sZXZlbC10d28nXSwgQ29uZmlnLnRyYW5zaXRpb25XaXRoSGlzdG9yeSk7XG4gICAgICAgIGJyZWFrO1xuICAgICAgZGVmYXVsdDpcbiAgICAgICAgdGhpcy5fcm91dGVyLm5hdmlnYXRlKFsnL2xldmVsLW9uZSddLCBDb25maWcudHJhbnNpdGlvbldpdGhIaXN0b3J5KTtcbiAgICAgICAgYnJlYWs7XG4gICAgfVxuICB9XG5cbn1cbiJdfQ==
github bradyhouse / house / fiddles / nativeScript / fiddle-0011-SqliteNg2 / puzzle / app / pages / level-two / level-two.component.js View on Github external
this.consoleLogMsg('level-two.component', 'onSkipLevelTap');
        this.onHighScore();
    };
    LevelTwoComponent.prototype.onNavBtnTap = function () {
        this._router.navigate([''], config_1.Config.transition);
    };
    return LevelTwoComponent;
}(base_1.Base));
LevelTwoComponent = __decorate([
    core_1.Component({
        selector: 'level-two',
        templateUrl: 'pages/level-two/level-two.component.html',
        styleUrls: ['pages/level-two/level-two-common.css', 'pages/level-two/level-two.css'],
        providers: [board_service_1.BoardService, score_service_1.ScoreService, state_service_1.StateService]
    }),
    __metadata("design:paramtypes", [router_1.RouterExtensions,
        page_1.Page,
        board_service_1.BoardService,
        score_service_1.ScoreService,
        state_service_1.StateService])
], LevelTwoComponent);
exports.LevelTwoComponent = LevelTwoComponent;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGV2ZWwtdHdvLmNvbXBvbmVudC5qcyIsInNvdXJjZVJv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oaXMuYm9hcmQubW92ZXMsXG4gICAgICAgICAgbGV2ZWw6IHRoaXMuYm9hcmQubGV2ZWwsXG4gICAgICAgICAgY2FsbGVyOiB0aGlzLmJvYXJkLm5leHRTY3JlZW5cbiAgICAgICAgfVxuICAgICAgXSwgQ29uZmlnLnRyYW5zaXRpb24pO1xuICAgIH0pO1xuICB9XG5cbiAgb25Ta2lwTGV2ZWxUYXAoKTogdm9pZCB7XG4gICAgdGhpcy5jb25zb2xlTG9nTXNnKCdsZXZlbC10d28uY29tcG9uZW50JywgJ29uU2tpcExldmVsVGFwJyk7XG4gICAgdGhpcy5vbkhpZ2hTY29yZSgpO1xuICB9XG5cbiAgb25OYXZCdG5UYXAoKTogdm9pZCB7XG4gICAgdGhpcy5fcm91dGVyLm5hdmlnYXRlKFsnJ10sIENvbmZpZy50cmFuc2l0aW9uKTtcbiAgfVxuXG59XG4iXX0=
github bradyhouse / house / fiddles / nativeScript / fiddle-0011-SqliteNg2 / puzzle / app / pages / high-score / high-score.component.js View on Github external
HighScoreComponent.prototype.onExitButtonTap = function () {
        this._router.backToPreviousPage();
    };
    HighScoreComponent.prototype.onNavBtnTap = function () {
        this._router.navigate([''], config_1.Config.transition);
    };
    return HighScoreComponent;
}(base_1.Base));
HighScoreComponent = __decorate([
    core_1.Component({
        selector: 'high-score',
        templateUrl: 'pages/high-score/high-score.component.html',
        styleUrls: ['pages/high-score/high-score-common.css', 'pages/high-score/high-score.css'],
        providers: [state_service_1.StateService, score_service_1.ScoreService]
    }),
    __metadata("design:paramtypes", [router_1.RouterExtensions,
        page_1.Page,
        score_service_1.ScoreService,
        state_service_1.StateService])
], HighScoreComponent);
exports.HighScoreComponent = HighScoreComponent;
github RafaelSNascimento / NativeScriptChat / chatNativeScriptApp / app / pages / chat / chat.component.js View on Github external
ChatComponent.prototype.ngAfterViewInit = function () {
    };
    ChatComponent.prototype.ngOnInit = function () {
        this.listView = this.page.getViewById("myScroller");
    };
    ChatComponent.prototype.selectUser = function (user) {
        this.routerExtensions.navigate(["/chatbox", user._id]);
    };
    ChatComponent = __decorate([
        core_1.Component({
            selector: 'app-chat',
            moduleId: module.id,
            templateUrl: './chat.component.html',
            styleUrls: ['./chat-common.css']
        }),
        __metadata("design:paramtypes", [page_1.Page, router_1.RouterExtensions, core_1.ChangeDetectorRef, socket_service_1.SocketService, forms_1.FormBuilder, common_functions_service_1.CommonFunctionsService, singleton_service_1.SingletonService])
    ], ChatComponent);
    return ChatComponent;
}());
exports.ChatComponent = ChatComponent;
github RafaelSNascimento / NativeScriptChat / chatNativeScriptApp / app / pages / chat-box / chat-box.component.js View on Github external
this.user["chatOpen"] = false;
    };
    ChatBoxComponent.prototype.sendMessage = function (toUser, roomId) {
        if (this.message) {
            this.socketService.sendMessage([this.message, toUser, roomId]);
            this.message = "";
        }
    };
    ChatBoxComponent = __decorate([
        core_1.Component({
            selector: 'app-chat-box',
            moduleId: module.id,
            templateUrl: './chat-box.component.html',
            styleUrls: ['./chat-box.component.css']
        }),
        __metadata("design:paramtypes", [router_2.ActivatedRoute, router_1.RouterExtensions, router_1.PageRoute, core_1.ChangeDetectorRef, singleton_service_1.SingletonService, socket_service_1.SocketService, page_1.Page])
    ], ChatBoxComponent);
    return ChatBoxComponent;
}());
exports.ChatBoxComponent = ChatBoxComponent;
github bradyhouse / house / fiddles / nativeScript / fiddle-0011-SqliteNg2 / puzzle / app / pages / high-score / add-high-score / add-high-score.component.js View on Github external
};
    return AddHighScoreComponent;
}(base_1.Base));
__decorate([
    core_1.ViewChild("nameTextField"),
    __metadata("design:type", core_1.ElementRef)
], AddHighScoreComponent.prototype, "nameTextField", void 0);
AddHighScoreComponent = __decorate([
    core_1.Component({
        selector: 'add-high-score',
        templateUrl: 'pages/high-score/add-high-score/add-high-score.component.html',
        styleUrls: ['pages/high-score/add-high-score/add-high-score-common.css',
            'pages/high-score/add-high-score/add-high-score.css'],
        providers: [score_service_1.ScoreService]
    }),
    __metadata("design:paramtypes", [router_2.RouterExtensions,
        router_1.ActivatedRoute,
        score_service_1.ScoreService])
], AddHighScoreComponent);
exports.AddHighScoreComponent = AddHighScoreComponent;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWRkLWhpZ2gtc2NvcmUuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiYWRkLWhpZ2gtc2NvcmUuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxJQUFNLE9BQU8sR0FBRyxPQUFPLENBQUMsWUFBWSxDQUFDLEVBQ25DLEtBQUssR0FBRyxPQUFPLENBQUMsVUFBVSxDQUFDLENBQUM7QUFHOUIsc0NBQXVFO0FBQ3ZFLDBDQUF1RDtBQUN2RCxzREFBNkQ7QUFPN0Qsc0NBQW1DO0FBQ25DLGlEQUE4QztBQUM5QyxxREFBa0Q7QUFDbEQscUVBQWlFO0FBVWpFLElBQWEscUJBQXFCO0lBQVMseUNBQUk7SUFTN0MsK0JBQW9CLE9BQXlCLEVBQ3pCLE1BQXNCLEVBQ3RCLGFBQTJCO1FBRi9DLFlBR0UsaUJBQU8sU0FXUjtRQWRtQixhQUFPLEdBQVAsT0FBTyxDQUFrQjtRQUN6QixZQUFNLEdBQU4sTUFBTSxDQUFnQjtRQUN0QixtQkFBYSxHQUFiLGFBQWEsQ0FBYztRQVIvQyxVQUFJLEdBQUcsRUFBRSxDQUFDO1FBV1IsS0FBSSxDQUFDLGFBQWEsQ0FBQyxJQUFJLENBQUMsTUFBTSxDQUFDLE1BQU0sQ0FBQyxTQUFTLENBQUMsVUFBQyxNQUFXO1lBQzFELGFBQWEsQ0FBQyxLQUFLLEdBQUcsS0FBSSxDQUFDLEtBQUssR0FBRyxNQUFNLENBQUMsT0FBTyxDQUFDLENBQUM7WUFDbkQsS0FBSSxDQUFDLEtBQUssR0FBRyxNQUFNLENBQUMsT0FBTyxDQUFDLENBQUM7WUFDN0IsS0FBSSxDQUFDLE1BQU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