随笔分类 -  Angular

上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 23 下一页
摘要:Just sharing the learning experience related to @ngrx/store and @ngrx/effects. In my personal opinion, I fell there are tow different types of coding 阅读全文
posted @ 2016-11-11 04:26 Zhentiw 阅读(391) 评论(0) 推荐(0)
摘要:At some point, you might need to udpate multi collections and those collections should all updated successfully, otherwise we don't update anything. Y 阅读全文
posted @ 2016-11-10 06:21 Zhentiw 阅读(318) 评论(0) 推荐(0)
摘要:The writeValue function allows you to update your internal model with incoming values, for example if you use ngModel to bind your control to data. Th 阅读全文
posted @ 2016-11-01 21:55 Zhentiw 阅读(536) 评论(0) 推荐(0)
摘要:We can nest formGorup: We make password as an own group. So in html, we need to use formGroupName istead of formControlName. And how we check the valu 阅读全文
posted @ 2016-11-01 05:32 Zhentiw 阅读(434) 评论(0) 推荐(0)
摘要:To do auth, first you need to go firebase.console.com to enable the auth methods, for example, enable google, github... Enable goolge is quite simple, 阅读全文
posted @ 2016-10-31 03:00 Zhentiw 阅读(987) 评论(0) 推荐(0)
摘要:'signupForm' is a formGroup. we can use 'hasError' & 'get()' methods to write the code. Refer to: Article && Doc 阅读全文
posted @ 2016-10-30 05:04 Zhentiw 阅读(309) 评论(0) 推荐(0)
摘要:Learn how to create a custom validator to check whether passwords match. confirmPasword validator is just a function, also a curry function. So it mea 阅读全文
posted @ 2016-10-30 04:50 Zhentiw 阅读(577) 评论(0) 推荐(0)
摘要:Learn how to update part of form model, full form model and reset whole form. We have form definetion like this: 阅读全文
posted @ 2016-10-30 03:38 Zhentiw 阅读(704) 评论(0) 推荐(0)
摘要:In this lesson, we are going to learn how to interact with native components through Cordova plugins. We will walk through how to add a Cordova plugin 阅读全文
posted @ 2016-10-28 22:44 Zhentiw 阅读(355) 评论(0) 推荐(0)
摘要:In this tutorial we are going to learn how we can also implement custom form field validation in Angular 2 template driven forms, by creating our own 阅读全文
posted @ 2016-10-28 18:35 Zhentiw 阅读(267) 评论(0) 推荐(0)
摘要:In this tutorial we are going to learn how simple it is to create custom form field driven validators while using Angular 2 model driven forms. These 阅读全文
posted @ 2016-10-28 18:13 Zhentiw 阅读(273) 评论(0) 推荐(0)
摘要:When easing isn’t enough to get the exact animation you want, you can leverage keyframes to define and precise styles and steps over time. Keyframes a 阅读全文
posted @ 2016-10-28 17:39 Zhentiw 阅读(188) 评论(0) 推荐(0)
摘要:By default, transitions will appear linearly over time, but proper animations have a bit more customization to them by delaying when they start and co 阅读全文
posted @ 2016-10-28 17:38 Zhentiw 阅读(256) 评论(0) 推荐(0)
摘要:Each trigger starts with an “undefined” state or a “void” state which doesn’t match any of your currently defined states. You have to be aware of when 阅读全文
posted @ 2016-10-28 17:37 Zhentiw 阅读(364) 评论(0) 推荐(0)
摘要:In this tutorial we are going to learn how we mark form fields in error and display error messages to the user in the case of Angular 2 model driven f 阅读全文
posted @ 2016-10-27 01:09 Zhentiw 阅读(319) 评论(0) 推荐(0)
摘要:For each formBuild, formControl, formGroup they all have 'valueChanges' prop, which is an Observable. If you want to only update form data model when 阅读全文
posted @ 2016-10-26 19:59 Zhentiw 阅读(762) 评论(0) 推荐(0)
摘要:Import module: Define the html: ts: group() function take an object param, each object stands for a field in template, which refer to 'formControlName 阅读全文
posted @ 2016-10-26 04:44 Zhentiw 阅读(1612) 评论(0) 推荐(0)
摘要:Angular 1 provided a mechanism to place content from your template inside of another template called transclusion. This concept has been brought into 阅读全文
posted @ 2016-10-22 03:36 Zhentiw 阅读(284) 评论(0) 推荐(0)
摘要:Animation start in 'trigger' function. Give a name call 'courseHover'. Animation also define 'state', and using 'transition' to animte the state. So w 阅读全文
posted @ 2016-10-18 04:24 Zhentiw 阅读(302) 评论(0) 推荐(0)
摘要:Article Github Auxiliary Routes is is little bit hard to understand. Here is demo, link You can see each category has an own 'View detials' button, an 阅读全文
posted @ 2016-10-18 02:25 Zhentiw 阅读(409) 评论(0) 推荐(0)

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