/* App Controllers */
function EventsCatCtrl($route) {
var self = this;
$route.when('/events', {
template: 'partials/events-list.html',
controller: EventsListCtrl
});
$route.when('/place/:place', {
template: 'partials/place-detail.html',
controller: EventsListCtrl
});
$route.when('/artiste/:artiste', {
template: 'partials/artiste-detail.html',
controller: EventsListCtrl
});
$route.otherwise({
redirectTo: '/events'
});
$route.onChange(function() {
self.params = $route.current.params;
});
$route.parent(this);
}
//EventsCatCtrl.$inject = ['$route'];
function EventsListCtrl() {
var self = this;
this.events = [
{
"date": "7/4/2011",
"day": "Monday",
"place": "Acid Bar",
"artiste": "Nelson",
"genre": "Acoustic",
"time": "1900-2100",
"price": "$$$ + $20 cover",
"description": "none",
},
{
"date": "7/4/2011",
"day": "Monday",
"place": "Acid Bar",
"artiste": "Tuna Pop",
"genre": "Acoustic",
"time": "2130-0045",
"price": "$$$ + $20 cover",
"description": "none",
},
{
"date": "7/4/2011",
"day": "Monday",
"place": "Blujaz Cafe",
"artiste": "Greg Lyons and 10 piece band, Omniform",
"genre": "Jazz",
"time": "2130",
"price": "$$ (Free entry)",
"description": "What started off as a chance to play Greg’s arrangements has evolved to include all the individual characters that form the band. The repertoire is still made up largely of Greg’s compositions and wholly of his arrangements which draw from just about every genre of music. Omniform also features some awesome and very individual soloists. Monster Trio, sometimes a quartet consists of talented musicians.",
},
{
"date": "7/4/2011",
"day": "Monday",
...
Please Whitelist JSFiddle in your content blocker.
Help keep JSFiddle free for always by one of two ways:
Whitelist JSFiddle in your content blocker (two clicks)
Go PRO and get access to additional PRO features →
Join the 4+ million users, and keep the JSFiddle dream alive.
Ad-free
All ads in the editor and listing pages are turned completely off.
Use pre-released features
You get to try and use features (like the Palette Color Generator) months before everyone else.
Fiddle collections
Sort and categorize your Fiddles into multiple collections.
Private collections and fiddles
You can make as many Private Fiddles, and Private Collections as you wish!
Console
Debug your Fiddle with a minimal built-in JavaScript console.