Last active
August 29, 2015 14:20
-
-
Save MicahZoltu/b8dd71f0d93150e50f14 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="stylesheet" type="text/css" href="../styles/styles.css"> | |
<template> | |
<require from='./nav-bar'></require> | |
<nav-bar router.bind="router"></nav-bar> | |
<div class="page-host"> | |
<router-view></router-view> | |
</div> | |
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Router, RouterConfiguration } from 'aurelia-router'; | |
import { AuthorizeStep } from 'AuthorizeStep'; | |
var title = 'Zoltu: RepoCreator'; | |
var routes = [ | |
{ route: '', redirect: 'about' }, | |
{ route: 'repo-creator', moduleId: './repo-creator/index', nav: true, title: 'Try It!', authorize: true }, | |
{ route: 'pricing', moduleId: './pricing', nav: true, title: 'Pricing' }, | |
{ route: 'about', moduleId: './about', nav: true, title: 'About' }, | |
{ route: 'login', moduleId: './login', nav: false, title: 'Login' } | |
]; | |
export class App { | |
configureRouter(config, router) { | |
config.title = this.title; | |
config.addPipelineStep('authorize', AuthorizeStep); | |
config.map(routes); | |
this.router = router; | |
}; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"Error instantiating NavBar. | |
------------------------------------------------ | |
inner error: TypeError: Cannot read property 'call' of undefined | |
at new NavBar (http://localhost:9000/output/nav-bar.js:24:48) | |
at Object.construct (http://localhost:9000/jspm_packages/npm/core-js@0.9.7/modules/es6.reflect.js:47:25) | |
at ClassActivator.invoke (http://localhost:9000/jspm_packages/github/aurelia/dependency-injection@0.7.1/metadata.js:183:26) | |
at Container.invoke (http://localhost:9000/jspm_packages/github/aurelia/dependency-injection@0.7.1/container.js:198:35) | |
at Array.<anonymous> (http://localhost:9000/jspm_packages/github/aurelia/dependency-injection@0.7.1/container.js:78:48) | |
at Container.get [as superGet] (http://localhost:9000/jspm_packages/github/aurelia/dependency-injection@0.7.1/container.js:131:28) | |
at Container.elementContainerGet [as get] (http://localhost:9000/jspm_packages/github/aurelia/templating@0.11.2/view-factory.js:27:17) | |
at HtmlBehaviorResource.create (http://localhost:9000/jspm_packages/github/aurelia/templating@0.11.2/html-behavior.js:204:76) | |
at applyInstructions (http://localhost:9000/jspm_packages/github/aurelia/templating@0.11.2/view-factory.js:79:33) | |
at ViewFactory.create (http://localhost:9000/jspm_packages/github/aurelia/templating@0.11.2/view-factory.js:166:13)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment