Note: the Twitter api does change from time to time. Refer to the documents if necessary.

Discussion

Twitter’s widget library expects to find an <a> tag on the page with specific data- attributes applied.
It takes the values of these attributes and, when the <a> tag is clicked, opens an iFrame for twitter sharing.

The share-twitter component takes four options that match the four attributes for the resulting <a> tag:
data-url, data-text, data-size, data-hashtags. These options and their values become properties on the
component object.

The component defines certain attributes of its HTML representation as bound to properties of the object through
its attributeBindings property. When the values of these properties change, the component’s HTML element’s
attributes will be updated to match the new values.

An appropriate tag and css class are applied through the tagName and classNames properties.

EmberWatch is a community-driven site. Anyone is welcome to contribute.