Skip to content
This repository was archived by the owner on Jul 11, 2018. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 12 additions & 10 deletions js/app.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict';

// Ionic Starter App

// angular.module is a global place for creating, registering and retrieving Angular modules
Expand All @@ -24,44 +26,44 @@ angular.module('starter', ['ionic', 'starter.controllers'])
$stateProvider

.state('app', {
url: "/app",
url: '/app',
abstract: true,
templateUrl: "templates/menu.html",
templateUrl: 'templates/menu.html',
controller: 'AppCtrl'
})

.state('app.search', {
url: "/search",
url: '/search',
views: {
'menuContent': {
templateUrl: "templates/search.html"
templateUrl: 'templates/search.html'
}
}
})

.state('app.browse', {
url: "/browse",
url: '/browse',
views: {
'menuContent': {
templateUrl: "templates/browse.html"
templateUrl: 'templates/browse.html'
}
}
})
.state('app.playlists', {
url: "/playlists",
url: '/playlists',
views: {
'menuContent': {
templateUrl: "templates/playlists.html",
templateUrl: 'templates/playlists.html',
controller: 'PlaylistsCtrl'
}
}
})

.state('app.single', {
url: "/playlists/:playlistId",
url: '/playlists/:playlistId',
views: {
'menuContent': {
templateUrl: "templates/playlist.html",
templateUrl: 'templates/playlist.html',
controller: 'PlaylistCtrl'
}
}
Expand Down
2 changes: 2 additions & 0 deletions js/controllers.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,6 @@ angular.module('starter.controllers', [])
})

.controller('PlaylistCtrl', function($scope, $stateParams) {
$scope.playlistCtrl = {};
$stateParams.stateParams = {};
});