Skip to content

Commit

Permalink
correction
Browse files Browse the repository at this point in the history
  • Loading branch information
mparaiso committed Sep 19, 2015
1 parent 396d813 commit 4986d7e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
1 change: 1 addition & 0 deletions js/main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion js/main.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 11 additions & 5 deletions js/main.ts
Expand Up @@ -50,30 +50,36 @@ class MainMenu { }
@Component({ selector: 'home' })
@View({
directives: [MainMenu],
template: `<h1>Home</h1><main-menu/>`
template: `<h1>Home</h1><main-menu/>`

})
class Home { }

@Component({ selector: 'login' })
@View({
directives: [MainMenu],
template: `<h1>Login</h1><main-menu></main-menu>`
template: `<h1>Login</h1><main-menu></main-menu>`

})
class Login { }

@Component({ selector: 'signup' })
@View({
@View({

directives: [MainMenu],
template: `<h1>Signup</h1><main-menu></main-menu>`
template: `<h1>Signup</h1><main-menu></main-menu>`

})
class Signup { }

// Needed for the router to work instead of putting a BASE tag in index.html
// Not needed with HashLocationStrategy
//let HREF_BINDINGS = bind(APP_BASE_HREF).toValue(window.location.origin + window.location.pathname)

let HASH_LOC_BINDINGS = bind(LocationStrategy).toClass(HashLocationStrategy)
@Component({
selector: 'root'
bindings: [ROUTER_BINDINGS,/* HREF_BINDINGS, */HASH_LOC_BINDINGS]
bindings: [ROUTER_BINDINGS,/* HREF_BINDINGS, */ HASH_LOC_BINDINGS]
})
@View({
directives: [ROUTER_DIRECTIVES],
Expand Down

0 comments on commit 4986d7e

Please sign in to comment.