Created
October 27, 2015 08:50
-
-
Save thiphariel/4e91246c42787c4cf2cd to your computer and use it in GitHub Desktop.
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
| export default function Component ({ | |
| restrict = "E", | |
| replace = true, | |
| scope = {}, | |
| bindToController = {}, | |
| controllerAs = "ctrl", | |
| controller = () => {}, | |
| template = null, | |
| link = () => {}, | |
| transclude = false | |
| } = {}) { | |
| return { | |
| restrict: restrict, | |
| replace: replace, | |
| scope: scope, | |
| bindToController: bindToController, | |
| controllerAs: controllerAs, | |
| controller: controller, | |
| template: template, | |
| link: link, | |
| transclude: transclude | |
| } | |
| } |
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
| import Component from "util/Component" | |
| import "./ScreenToolbar.css" | |
| export default Component({ | |
| transclude: true, | |
| bindToController: { | |
| screenTitle: "@" | |
| }, | |
| template: ` | |
| <md-toolbar class="Screen__Toolbar"> | |
| <h1 class="md-toolbar-tools"> | |
| <MenuButton /> | |
| <ScreenTitle>{{ctrl.screenTitle}}</ScreenTitle> | |
| <span layout="row" flex ng-transclude></span> | |
| <User /> | |
| </h1> | |
| </md-toolbar> | |
| ` | |
| }) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment