Skip to content

Instantly share code, notes, and snippets.

@iksose
Last active December 26, 2015 01:00
Show Gist options
  • Save iksose/735cbd6e577e0f694dd0 to your computer and use it in GitHub Desktop.
Save iksose/735cbd6e577e0f694dd0 to your computer and use it in GitHub Desktop.
// 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