SHARE
TWEET

Untitled

a guest Oct 6th, 2016 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // HTML
  2.  
  3. <myComponent text="foo" image="bar" action="$ctrl.fooBar()"> </myComponent>
  4.  
  5. <myComponent text="{{ $ctrl.foo ? 'foo' : 'bar' }}" image="bar" action="{{ $ctrl.bar ? $ctrl.fooBar() : false }}"> </myComponent>
  6.  
  7.  
  8. // Component
  9. import template from './foo.html';
  10. import './foo.styl';
  11.  
  12. export default {
  13.   template,
  14.   bindings: {
  15.     text: '@?',
  16.     image: '@?',
  17.     action: '&?',
  18.   },
  19. };
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top