15 lines
449 B
TypeScript
15 lines
449 B
TypeScript
|
//// [multiLinePropertyAccessAndArrowFunctionIndent1.ts]
|
||
|
return this.edit(role)
|
||
|
.then((role: Role) =>
|
||
|
this.roleService.add(role)
|
||
|
.then((data: ng.IHttpPromiseCallbackArg<Role>) => data.data));
|
||
|
|
||
|
|
||
|
//// [multiLinePropertyAccessAndArrowFunctionIndent1.js]
|
||
|
var _this = this;
|
||
|
return this.edit(role).then(function (role) {
|
||
|
return _this.roleService.add(role).then(function (data) {
|
||
|
return data.data;
|
||
|
});
|
||
|
});
|