Last active
December 26, 2015 01:00
-
-
Save iksose/735cbd6e577e0f694dd0 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
// angular 1 | |
import template from './navbar.html'; | |
import './navbar.styl'; | |
let Component = { | |
restrict: 'E', | |
bindings: {}, | |
template, | |
controller: Home | |
controllerAs: 'vm' | |
}; | |
class Home { | |
constructor() {} | |
} | |
// angular 2 | |
import {Component} from 'angular2/core'; | |
import style from './home.css'; | |
import template from './home.styl'; | |
@Component({ | |
selector: 'home', | |
styles: [ style ], | |
template | |
}) | |
class Home { | |
constructor() {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment