Last active
August 29, 2015 14:22
-
-
Save benmj/bf27da8d562a13e07de1 to your computer and use it in GitHub Desktop.
ES6 Angular component
This file contains hidden or 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
'use strict'; | |
class NavbarCtrl { | |
constructor ($log) { | |
$log.log('simplistic example'); | |
} | |
} | |
NavbarCtrl.$inject = ['$log']; | |
export default () => { | |
return { | |
restrict: 'E', | |
template: `<nav> | |
<img src="assets/images/logo.png" title="Logo" alt="Logo" class="navbar-logo-image" /> | |
<div class="right-button-container"> | |
<button class="btn btn-default"> | |
Logout | |
</button> | |
</div> | |
<h1 class="centered-header"> | |
Pricing system | |
</h1> | |
</nav>`, | |
controller: NavbarCtrl, | |
controllerAs: 'vm' | |
}; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See gulp-angular-generator