In this article we have two separate procedures to integrate open graph meta on our Drupal site to insert a custom image when we publish an article on facebook.
Create applications with Ember.js
The framework Ember.js
Setup project Ember.js
In this case we have defined the version property by assigning a value of 1.0, and we have handled the event by displaying a message ready. Handling the ready is analogous to using the ready () jQuery and its purpose is to make sure that the DOM and the infrastructure provided by Ember.js have been completely loaded by the browser.
Definition of the model (model MVC)
Defining the controller
The ArrayController provides the default property content to contain the tweet. In our case, we initialized the property with an empty array. To load tweets of Cmswiki.net in this structure create the method loadTweets ():
View and Handlebar
Interaction with the user
In this expression we specify the action to be performed at the click on the list, indicating the method and through the target, the controller to which it belongs.
Conclusions and insights