first commit. Way too late.

This commit is contained in:
didier.amyot committed 2014-05-07 21:47:51 -04:00
commit da7cacb57e
35 files changed
+1355

No files matched your search

@@ -0,0 +1,12 @@
root = this;
root.controllers.controller('collectionsCtrl', ['$scope', '$routeParams', '$http', ($scope, $routeParams, $http) ->
$scope.server = $routeParams.server
$scope.database = $routeParams.database
$scope.collections = []
$http.get("/api/#{ $routeParams.server }/#{ $routeParams.database }/collections").then((res) ->
$scope.collections = res.data
)
])