Advertisement
Guest User

Untitled

a guest
Apr 20th, 2014
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. App.PinController = Ember.Controller.extend({
  2. actions: {
  3. actionThatComponentCalls: function(){
  4. // different component will be called
  5. new App.MyOtherComponent().send('differentAction'):
  6. }
  7. }
  8. });
  9.  
  10. App.FullScreenMapComponent = Ember.Component.extend({
  11. click: function(){
  12. this.sendAction();
  13. }
  14. });
  15.  
  16. App.MyOtherComponent = Ember.Component.extend({
  17. actions: {
  18. differentAction: function(){
  19. console.log('different action called');
  20. }
  21. }
  22. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement