Skip to content

Instantly share code, notes, and snippets.

@justinramel
Created December 27, 2015 00:52
Show Gist options
  • Save justinramel/e1d64b0ca22d68139c53 to your computer and use it in GitHub Desktop.
Save justinramel/e1d64b0ca22d68139c53 to your computer and use it in GitHub Desktop.
import {Component} from 'angular2/core';
import {IONIC_DIRECTIVES} from 'ionic/ionic';
@Component({
selector: 'direction-icon',
template: `
<button clear secondary *ngIf="direction === 'In'"><icon thumbs-up></icon></button>
<button clear danger *ngIf="direction === 'Out'"><icon thumbs-down></icon></button>
`,
directives: [IONIC_DIRECTIVES],
inputs: ['direction']
})
export class DirectionIcon {
constructor() {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment