HTML and CSS Reference
In-Depth Information
/**
* Hide all of the cards
*/
app.utility.deck.hideAllCards();
/**
* Show the movie info card
*/
app.utility.deck.showCard('card-movie_info');
}
...
}
Finally, you will need to add the this.bindSearchForm(); call to the init
method.
var app = app || {};
app.controller = app.controller || {};
app.controller.movies = function(){
...
this.init = function(){
this.bindSearchForm();
}
...
this.init();
}
The Favorites Controller
The favorites controller is much simpler than the movies controller. It will simply
handle listing the user's favorites, adding and removing items from the user's
favorites in localStorage .
Begin by creating a new file within js/app/controller called favorite.js with
the following code.
var app = app || {};
app.controller = app.controller || {};
 
Search WWH ::




Custom Search