Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- App.PinController = Ember.Controller.extend({
- actions: {
- actionThatComponentCalls: function(){
- // different component will be called
- new App.MyOtherComponent().send('differentAction'):
- }
- }
- });
- App.FullScreenMapComponent = Ember.Component.extend({
- click: function(){
- this.sendAction();
- }
- });
- App.MyOtherComponent = Ember.Component.extend({
- actions: {
- differentAction: function(){
- console.log('different action called');
- }
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement