converted all auth functions to use mongoose
This commit is contained in:
21
public/js/controllers.js
Executable file
21
public/js/controllers.js
Executable file
@@ -0,0 +1,21 @@
|
||||
'use strict';
|
||||
|
||||
/* Controllers */
|
||||
|
||||
function AppCtrl($scope, $http) {
|
||||
$http({method: 'GET', url: '/api/name'}).
|
||||
success(function(data, status, headers, config) {
|
||||
$scope.name = data.name;
|
||||
}).
|
||||
error(function(data, status, headers, config) {
|
||||
$scope.name = 'Error!'
|
||||
});
|
||||
}
|
||||
|
||||
function MyCtrl1() {}
|
||||
MyCtrl1.$inject = [];
|
||||
|
||||
|
||||
function MyCtrl2() {
|
||||
}
|
||||
MyCtrl2.$inject = [];
|
Reference in New Issue
Block a user