Created
May 3, 2015 16:14
-
-
Save pzaich/38ece4135c37c149e474 to your computer and use it in GitHub Desktop.
library_controller.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
angular.module('example', []) | |
.controller('libraryController', function (Books) { | |
var initialize = function () { | |
$scope.books = Books | |
} | |
$scope.removeBook = function () { | |
// accessible to scope | |
} | |
initialize(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment