Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add an initializer

commit aeb1cd5c5ad56f87e5dc63623e8e31b8bf73443f 1 parent 24d7bc2
@davidsulc authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 assets/javascripts/application.js
View
7 assets/javascripts/application.js
@@ -27,3 +27,10 @@ AngryCatsView = Backbone.Marionette.CompositeView.extend({
collectionView.$("tbody").append(itemView.el);
}
});
+
+MyApp.addInitializer(function(options){
+ var angryCatsView = new AngryCatsView({
+ collection: options.cats
+ });
+ MyApp.mainRegion.show(angryCatsView);
+});
Please sign in to comment.
Something went wrong with that request. Please try again.