Skip to content

Instantly share code, notes, and snippets.

@RichardSilveira
Last active February 1, 2018 12:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RichardSilveira/e5a5fddc9026a4ff2f2568b41be60095 to your computer and use it in GitHub Desktop.
Save RichardSilveira/e5a5fddc9026a4ff2f2568b41be60095 to your computer and use it in GitHub Desktop.
@Injectable()
export class CoursesService {
constructor() { }
findAllCourses(): Observable<Course[]> {// ... //}
findLatestLessons(): Observable<Lesson[]> {// ... //}
findCourseByUrl(courseUrl:string): Observable<Course> {// ... //}
findLessonsForCourse(courseId:string): Observable<Lesson[]> {// ... //}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment