How to use the @angular/router-deprecated.RouterLink function in @angular/router-deprecated

To help you get started, we’ve selected a few @angular/router-deprecated 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 dharmeshpipariya-zz / md2 / app / app.js View on Github external
}
    ngOnInit() {
        console.log("Application component initialized ...");
    }
    sidenavToggle() {
        this.isSidenavOpened = !this.isSidenavOpened;
    }
    isActive(path) {
        return this.location.path().startsWith(path);
    }
};
AppComponent = __decorate([
    core_1.Component({
        selector: "md2-app",
        templateUrl: "./app/app.html",
        directives: [home_1.Home, accordion_1.Accordion, autocomplete_1.Autocomplete, collapse_1.Collapse, colorpicker_1.Colorpicker, dialog_1.DialogComponent, menu_1.Menu, multiselect_1.Multiselect, select_1.Select, switch_1.Switch, tabs_1.Tabs, tags_1.Tags, toast_1.Toast, tooltip_1.Tooltip, router_deprecated_1.RouterLink, router_deprecated_1.ROUTER_DIRECTIVES]
    }),
    router_deprecated_1.RouteConfig([
        { path: '/', name: 'Home', component: home_1.Home },
        { path: '/Accordion', name: 'Accordion', component: accordion_1.Accordion },
        { path: '/Autocomplete', name: 'Autocomplete', component: autocomplete_1.Autocomplete },
        { path: '/Collapse', name: 'Collapse', component: collapse_1.Collapse },
        { path: '/Colorpicker', name: 'Colorpicker', component: colorpicker_1.Colorpicker },
        { path: '/Dialog', name: 'Dialog', component: dialog_1.DialogComponent },
        { path: '/Menu', name: 'Menu', component: menu_1.Menu },
        { path: '/Multiselect', name: 'Multiselect', component: multiselect_1.Multiselect },
        { path: '/Select', name: 'Select', component: select_1.Select },
        { path: '/Switch', name: 'Switch', component: switch_1.Switch },
        { path: '/Tabs', name: 'Tabs', component: tabs_1.Tabs },
        { path: '/Tags', name: 'Tags', component: tags_1.Tags },
        { path: '/Toast', name: 'Toast', component: toast_1.Toast },
        { path: '/Tooltip', name: 'Tooltip', component: tooltip_1.Tooltip }