Skip to content

Instantly share code, notes, and snippets.

View FMastro's full-sized avatar

FMastro

View GitHub Profile
eventsApp.factory('MovieService', function($resource) {
return {
getMovie: function() {
return $resource('http://api.rottentomatoes.com/api/public/v1.0/movies/770672122.json?apikey=6zrhq6qq2sjgh8c7qsfgddg5').get();
}
};
});
eventsApp.controller('MovieController',
<script type="text/javascript">
$(window).load(function () {
var component = draw2d.shape.basic.Rectangle.extend({
init: function (width, height, label, level) {
this._super(width, height);
// Create any Draw2D figure as decoration for the connection