随笔分类 - Angular
摘要:Let's see how to do pagination in Firebase: For the init loading, we only want 3 items: 'limitToFirst' --> If not given 'startAt', will start from ind
阅读全文
摘要:From router v3.1.0, we have preloading system with router. After the init module loaded, router will preloading the rest module at the background. Cus
阅读全文
摘要:Artical --> BYPASSING PROVIDERS IN ANGULAR 2 Here trying to solve one problem: On the left hand side of tree, there are 4 green blocks and 1 blue bloc
阅读全文
摘要:Lets see how to query Firebase. First thing, when we do query, 'index' will always help, for both SQL and NoSQL. In Firebase, we can also set index on
阅读全文
摘要:Index router as default router. Index router, usually comes as last, just right before the fallback router.
阅读全文
摘要:When to use Interface and when to use Class. Let's see one example: We have an Interface 'Lesson' and a Class 'Lesson'. At this point, I would love to
阅读全文
摘要:import { Injectable } from '@angular/core'; import {RealtimeService} from "../shared"; import {FirebaseListObservable} from "angularfire2"; @Injectable() export class CourseService { courses$: Fi...
阅读全文
摘要:In this lesson we are going to learn how to use AngularFire 2 to query objects, and read them from the Firebase realtime database. In this lesson we a
阅读全文
摘要:In this lesson we are going to use AngularFire 2 for the first time. We are going to configure the AngularFire 2 module, inject the AngularFire servic
阅读全文
摘要:In this tutorial we are going to learn how we can can configure redirects in the angular 2 router configuration. We are also going to see again anothe
阅读全文
摘要:In this tutorial we are going to learn how we can can configure redirects in the angular 2 router configuration. We are also going to see again anothe
阅读全文
摘要:Each time you use the Async Pipe, you create a new subscription to the stream in the template. This can cause undesired behavior especially when netwo
阅读全文
摘要:In this tutorial we are going to learn how we can to configure an can activate route guard in the Angular 2 router. We are going to implement the conc
阅读全文
摘要:In this tutorial we are going to learn how we can to configure an exit guard in the Angular 2 Router. We are going to learn how to use a CanDeactivate
阅读全文
摘要:Select Dropdowns in Angular 2 a built with select and option elements. You use *ngFor to loop through your values and create options and use ngModel t
阅读全文
摘要:Using Radio Buttons in Angular 2 requires a basic understanding of forms as well as how their labels will match up with each input. This lesson shows
阅读全文
摘要:In this tutorial we are going to learn how we can accidentally creating memory leaks in our application while using the Angular 2 router. We are going
阅读全文
摘要:In this tutorial we are going to learn how to use the Angular 2 router to pass optional query parameters from one route into another route. There are
阅读全文
摘要:In the application, we have heros list, when click each hero, will redirect to hero detail view. That means, hero detail component will get inited eve
阅读全文
摘要:Angular 2 forms provide RxJS streams for you to work with the data and validity as it flows out of the forms. These streams allow you handle complex s
阅读全文