0.0.11 • Published 9 years ago

@thinkeloquent/es6-router v0.0.11

Weekly downloads
-
License
MIT
Repository
github
Last release
9 years ago

es6-router

Installation

npm install
npm package ()

Usage

Route Component Definition

'use strict';

import main_module from '@thinkeloquent/es6-router';

const app = angular.module('app', ['ngComponentRouter']);

app.component('app', {
  template: `<ng-outlet></ng-outlet>`,
  $routeConfig: [
    {
      path: '/',
      name: 'Home',
      component: 'home',
      useAsDefault: true
    },
    {
      path: '/about',
      name: 'About',
      component: 'about'
    }
  ]
});

app.component('home', {
  template: '<h2>Home Page</h2>',
})

app.component('about', {
  template: '<h2>About Page</h2>',
})

main_module.angular['1.6.x'].router.register(app);

Examples

Resources

0.0.11

9 years ago

0.0.9

9 years ago

0.0.8

9 years ago

0.0.7

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago