Skip to content

Commit

Permalink
fix(client): fix a few client code errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Awk34 committed Apr 30, 2017
1 parent 640d5ff commit 5535fe3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export class SettingsComponent {
this.submitted = true;

if(form.$valid) {
this.Auth.changePassword(this.user.oldPassword, this.user.newPassword)
this.AuthService.changePassword(this.user.oldPassword, this.user.newPassword)
.then(() => {
this.message = 'Password successfully changed.';
})
Expand Down
2 changes: 1 addition & 1 deletion templates/app/client/app/app.constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ export default from '../../server/config/environment/shared';<% } %>
<%_ if(filters.ts) { -%>
import shared from '../../server/config/environment/shared';

module.exports.default = shared;<% } %>
export default shared;<% } %>
2 changes: 1 addition & 1 deletion templates/app/client/app/main/main.component.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@ export class MainComponent implements OnInit<% if(filters.socketio) { %>, OnDest
}

deleteThing(thing) {
this.$http.delete('/api/things/' + thing._id);
this.Http.delete(`/api/things/${thing._id}`);
}<% } %>
}

0 comments on commit 5535fe3

Please sign in to comment.