Created
June 6, 2019 23:21
-
-
Save arturovt/b1a246ecfffce9aacd241dbab905e634 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Injectable() | |
export class TodosResolver implements Resolve<Todo[]> { | |
constructor(private todoService: TodoService) {} | |
public resolve(): Observable<Todo[]> { | |
return this.todoService.getTodos(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment