Skip to content

Commit b7fdf7e

Browse files
committed
Merge pull request island205#3 from lzyzsd/master
fix two bugs
2 parents 3ab69ab + 6a5204e commit b7fdf7e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.bowerrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"directory" : "webapp/components"
2+
"directory" : "static/components"
33
}

static/services/server.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,12 @@ angular.module('techNodeApp').factory('server', ['$cacheFactory', '$q', '$http',
5454
return {
5555
validate: function() {
5656
var deferred = $q.defer()
57+
var self = this;
5758
$http({
5859
url: '/api/validate',
5960
method: 'GET'
6061
}).success(function(user) {
61-
angular.extend(this.getUser(), user)
62+
angular.extend(self.getUser(), user)
6263
deferred.resolve()
6364
}).error(function(data) {
6465
deferred.reject()

0 commit comments

Comments
 (0)