With its ubiquity, jQuery still plays a vital role in the web development world. Its regular employment shouldn’t be a surprise especially when using a framework like Ember. This framework has components that are similar to jQuery plugins in that they are both designed to have a single responsibility in your project.
In this article, we will develop a simple Ember component. This tutorial will showcase how to integrate a jQuery plugin into an Ember application. The component acts as a wrapper for the plugin, which shows a list of picture thumbnails. Whenever we click a thumbnail, a bigger version of it is displayed in the picture previewer. This works by extracting the
src property of the clicked thumbnail. Then, we set the
src property of the previewer to that of the thumbnail. The complete code of this article can be found on GitHub.
With this in mind, let’s start working on this project.
Continue reading %How to Integrate jQuery Plugins into an Ember Application%