摘要:
In Single Page Apps we're used to fetch the data on event callbacks. That disables the capacity to use the URL to share it to someone else and get to 阅读全文
摘要:
For example, what you want to do is navgiate from current item to next or previous item. In your component, you can dispatch action like this: So here 阅读全文
摘要:
Also check: directive for form validation User input validation is a core part of creating proper HTML forms. Form validators not only help you to get 阅读全文
摘要:
Always treat Router as the source of truth When we use Ngrx, we can see that we will use a "StoreRouterConnectingModule" from the example app. What it 阅读全文
摘要:
Most of time, we get used to use class name as a selector in the test. But one problem for this is classname is used for styling, when we also use it 阅读全文
摘要:
/* list of strings */ let _ = ["example-1", "example-2", "example-3"]; /* Array of strings */ let _ = [|"example-1", "example-2", "example-3"|]; /* Stating the type of a Reason record */ type event... 阅读全文
摘要:
// ::country is named param // ::country=?: which make it optional // because we make ::country=? optional named param, we may pass in or may not pass in // we need use '()' --> (): string => , which... 阅读全文