Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

Commit

Permalink
Fixed IDE complains.
Browse files Browse the repository at this point in the history
  • Loading branch information
tarlepp committed Jan 6, 2016
1 parent 60e4354 commit 44ec7e9
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions app/components/examples/book/book.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,20 @@ import {BookService} from './service';
// And get BookService
let bookService = injector.get(BookService);

return Promise.all([
bookService.count().toPromise(),
bookService.getBooks().toPromise()
]).then(
data => {
next.params.count = data[0];
next.params.books = data[1];
return new Promise((resolve, reject) => {
Promise.all([
bookService.count().toPromise(),
bookService.getBooks().toPromise()
]).then(
data => {
next.params.count = data[0];
next.params.books = data[1];

return true;
}
);
resolve(true);
},
error => reject(error)
);
});
})

// Actual component class
Expand Down

0 comments on commit 44ec7e9

Please sign in to comment.