Sunday, February 24, 2019
Design an Angular 2+ shopping module PART 1
I should have done this way before my code of this module being tangled like a hell.
Thursday, January 31, 2019
RxJs mergeMap, switchMap, concatMap, exhaustMap in exmples PART 2
PART 1
Quick review of part 1, our purpose is to clarify differences between RxJs mergeMap, switchMap, concatMap, exhaustMap, and we made a scenario as bellow to do this:
Quick review of part 1, our purpose is to clarify differences between RxJs mergeMap, switchMap, concatMap, exhaustMap, and we made a scenario as bellow to do this:
- There are 5 tasks which I have to do on almost every morning
- The 5 tasks start in a specific order, which won't change at all.
- But how long each task takes to finish it, that will change.
- Our mappers wait for a task finish and emit message to info the finish.
RxJs mergeMap, switchMap, concatMap, exhaustMap in exmples PART 1
We once talked about how mergeMap(flatMap), switchMap, concatMap work and what's those differences between them, in words, without examples. And we missed the youngest kid in the Map family, exhaustMap. It's time to use some example codes to clarify them once for all.
Wednesday, January 30, 2019
Write a compound number range picker in Angular 6
The reason of this component is that I need a custom input for users to decide their budget, include minimum and maximum, 2 numbers. And lately I found that this input could be reusable in many cases, while itself defined in features as below:
Wednesday, December 26, 2018
Write a general purpose Angular 2+ comments
As long as there is something in your website to show to users, there must be urgent of your users to comment on that something. This is always true for any content-providing website. After all, what's the good of a website if you can't dump any of your garbage opinions on its garbage content.
Why sanitize html context ?
Image this situation when you write a blogger, or a forum, or an online editor for 3 GODDAMN 研究紀錄簿s every month like this one, whatever.
If your editor supports only pure text that will be so lame, right? So basically what you need is an editor which enables users to input their colourful HTML encoded content.
If your editor supports only pure text that will be so lame, right? So basically what you need is an editor which enables users to input their colourful HTML encoded content.
Tuesday, December 25, 2018
Write Angular 2+ Custom Form Control
We use form to collect data from user and save it as an object, a record, or a document into backend data-storage.
In simple case like User profile, all we got are name, email, phone number, age, birthday ...etc., nothing more than a string, number, or date, there are already built-in html5 inputs to handle data of these certain types, and Angular 2+ also integrated them naturally, but how about data field of some more complicated type? or when the ordinary flat inputs can not satisfy my desire for a more splendid UI ?
In simple case like User profile, all we got are name, email, phone number, age, birthday ...etc., nothing more than a string, number, or date, there are already built-in html5 inputs to handle data of these certain types, and Angular 2+ also integrated them naturally, but how about data field of some more complicated type? or when the ordinary flat inputs can not satisfy my desire for a more splendid UI ?
Subscribe to:
Posts (Atom)