Develop Your Own Addon

If you work with Ember and Ember CLI long enough, you’ll find that you want to share code between apps, whether pointing multiple apps at an addon in a private Git repository, or publishing your addon publicly via npm. We’ve already seen how to obtain and use a third-party addon within your app. Now, let’s talk about how to create an addon to be shared between your applications, or even to be used by others.

A natural use of Ember addons is to create a reusable web component library. Many such libraries exist that contain reusable web controls, like buttons or menu bars; we’ve even discussed a few in this book. Let’s start a small one right now with a single control: a Bootstrap-styled drop-down list, which we’ll use ...

Get Deliver Audacious Web Apps with Ember 2 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.