2015-03-09 02:23:23 +01:00
|
|
|
//// [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;
|
2015-03-26 21:46:35 +01:00
|
|
|
return this.edit(role)
|
|
|
|
.then(function (role) {
|
|
|
|
return _this.roleService.add(role)
|
|
|
|
.then(function (data) { return data.data; });
|
2015-03-09 02:23:23 +01:00
|
|
|
});
|