Sha256: 6c56ec1ef7abafc2fcef9bfe35b2bd423ee2901db2469b57820a1e6ec19b60f1

Contents?: true

Size: 602 Bytes

Versions: 3

Compression:

Stored size: 602 Bytes

Contents

(function() {
  app.controller('SongsController', [
    '$http', 'songService', '$location', function($http, songService, $location) {
      songService.loadSongs();
      this.filterQuery = '';
      this.songs = function() {
        return songService.songs;
      };
      this.setActive = function(song) {
        return $location.path("/songs/" + song.identifier);
      };
      this.activeSong = function() {
        return songService.activeSong;
      };
      this.addAllToBook = function() {
        return songService.addAllToBook();
      };
      return this;
    }
  ]);

}).call(this);

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
songbooks-0.1.2 public/javascripts/components/songs/songs.controller.js
songbooks-0.1.1 public/javascripts/components/songs/songs.controller.js
songbooks-0.1.0 public/javascripts/components/songs/songs.controller.js