O'Reilly logo

Ember.js Web Development with Ember CLI by Suchit Puri

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Mapping component actions to the rest of your application

Till now, we have been successful in creating self-contained reusable components. These components render themselves and handle actions that can be served in isolation, irrespective of where the components are being used.

As we learned earlier in the chapter, events that are raised from the component's template are looked up in the component's action object. These events don't bubble up to the application's controllers or routes.

This all works fine till the components need to inform the rest of the application to take some business decisions. Ember.js framework lets your components translate the component events into meaningful application actions by using the sendAction method, accessible ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required