随笔分类 -  Angular

上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 23 下一页
摘要:Just like in *ngFor, you're able to pass in data into your own structural directives. This is done by declaring the variable using a let statement the 阅读全文
posted @ 2017-01-16 19:18 Zhentiw 阅读(215) 评论(0) 推荐(0)
摘要:Structural directives enable you to use an element as a template for creating additional elements. Creating structural directives requires a knowledge 阅读全文
posted @ 2016-12-22 21:20 Zhentiw 阅读(252) 评论(0) 推荐(0)
摘要:You can change behaviors of element and @Component properties based on services using @HostBinding in @Directives. This allows you to build @Directive 阅读全文
posted @ 2016-12-22 17:07 Zhentiw 阅读(557) 评论(0) 推荐(0)
摘要:A @Directive is used to add behavior to elements and components in your application. This makes @Directives ideal for behaviors such as "tracking" whi 阅读全文
posted @ 2016-12-22 17:05 Zhentiw 阅读(271) 评论(0) 推荐(0)
摘要:A @Directive can also listen to events on their host element using @HostListener. This allows you to add behaviors that react to user input and update 阅读全文
posted @ 2016-12-21 04:19 Zhentiw 阅读(294) 评论(0) 推荐(0)
摘要:The @Input decorator allows you to pass values into your @Directive so that you can change the value of the Directive each time that it is used. Using 阅读全文
posted @ 2016-12-21 04:03 Zhentiw 阅读(252) 评论(0) 推荐(0)
摘要:Angular 2 Directives allow you manipulate elements by adding custom behaviors through attributes. This lesson covers how to create a Directive and att 阅读全文
posted @ 2016-12-21 03:53 Zhentiw 阅读(228) 评论(0) 推荐(0)
摘要:Recommend to use angular-cli to generate component and service, so we can get testing templates. Component with injected service: Service: 阅读全文
posted @ 2016-12-20 05:12 Zhentiw 阅读(632) 评论(0) 推荐(0)
摘要:Found the way to handle Auxiliary router for lazy loading moudle and erge load module are different. In Erge loading, it is recommended to create a sh 阅读全文
posted @ 2016-12-17 21:20 Zhentiw 阅读(525) 评论(0) 推荐(0)
摘要:The idea is when we tape the arrow keys on the keyboard, we want the ball move accodingly. Here, 'curr' is the function return from 'mapTo', the 'acc' 阅读全文
posted @ 2016-12-06 18:23 Zhentiw 阅读(578) 评论(0) 推荐(0)
摘要:getActivatedRoutePath(r: ActivatedRoute) { return r.url .subscribe(p => this.curtPath = p[0].path)} 阅读全文
posted @ 2016-12-05 04:41 Zhentiw 阅读(206) 评论(0) 推荐(0)
摘要:'canLoad' guard can decide whether a lazy load module can be loaded or not. app.routers.ts: So if user not login, app won't load home module. 阅读全文
posted @ 2016-12-03 23:54 Zhentiw 阅读(1130) 评论(0) 推荐(0)
摘要:In this lesson we are going to learn how to build a custom Node process for batch processing of Firebase data using the Firebase queue library. From U 阅读全文
posted @ 2016-11-28 03:50 Zhentiw 阅读(478) 评论(0) 推荐(0)
摘要:Article 阅读全文
posted @ 2016-11-25 00:51 Zhentiw 阅读(476) 评论(0) 推荐(0)
摘要:import {AuthProviders, FirebaseAuthState, FirebaseAuth, AuthMethods} from "angularfire2";import {Injectable} from "@angular/core";import {Subject, BehaviorSubject} from "rxjs";import {AuthInfo} from ... 阅读全文
posted @ 2016-11-22 03:18 Zhentiw 阅读(941) 评论(0) 推荐(0)
摘要:After successfully login, we want something help to check whether user has already login or not. And we will use Observable to do that. Create AuthInf 阅读全文
posted @ 2016-11-22 03:15 Zhentiw 阅读(350) 评论(0) 推荐(0)
摘要:First, you need to enable the email auth in Firebase console. Then implement the auth service: Because login method return Promise, we need to convert 阅读全文
posted @ 2016-11-20 04:49 Zhentiw 阅读(309) 评论(0) 推荐(0)
摘要:We can build a template, use this template and pass in different context to make it reuseable: 阅读全文
posted @ 2016-11-18 05:28 Zhentiw 阅读(403) 评论(0) 推荐(0)
摘要:Angular 2 templates have a special let syntax that allows you to define and pass a context when they’re being generated. We have template: And we defi 阅读全文
posted @ 2016-11-17 19:12 Zhentiw 阅读(249) 评论(0) 推荐(0)
摘要:From Article: RESOLVING ROUTE DATA IN ANGULAR 2 Github If you know Anuglar UI router, you must know resolve function in ui router, which you can load 阅读全文
posted @ 2016-11-17 03:26 Zhentiw 阅读(1267) 评论(0) 推荐(0)

上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 23 下一页