随笔分类 -  Angular

上一页 1 2 3 4 5 6 7 8 ··· 23 下一页
摘要:First thing first, let's define a action to update entity: The 'Update' interface has props: 'id, changes'. Component usage: Reducer: Effect: 阅读全文
posted @ 2019-10-08 21:54 Zhentiw 阅读(148) 评论(0) 推荐(0) 编辑
摘要:ng-container is using for grouping elments together, a bit similar to div. If you want to group some elements together, but don't want to break the DO 阅读全文
posted @ 2019-10-08 19:46 Zhentiw 阅读(165) 评论(0) 推荐(0) 编辑
摘要:1. First step is creating action creator Action name should be clear which page, which functionality, what is the action name "[Load Courses Effect] A 阅读全文
posted @ 2019-10-08 19:15 Zhentiw 阅读(563) 评论(0) 推荐(0) 编辑
摘要:We have a reoslver, which everytime we want visit '/courses' route, it will be triggered, then api will be called, data will be loaded. So how to prev 阅读全文
posted @ 2019-10-04 23:54 Zhentiw 阅读(1362) 评论(0) 推荐(0) 编辑
摘要:'sortCompoarer' is used with adapter when you want to sort the entites based on one prop, 'ids' will be also sorted accordingly to the new entities. 阅读全文
posted @ 2019-10-04 23:39 Zhentiw 阅读(355) 评论(0) 推荐(0) 编辑
摘要:Turn on runtime check: Docs 阅读全文
posted @ 2019-09-22 17:16 Zhentiw 阅读(239) 评论(0) 推荐(0) 编辑
摘要:Make sure you have the@ngrx packages installed: To enable time travel debugging, you need to import: app.module.ts Enable add reducer for router: redu 阅读全文
posted @ 2019-09-22 17:08 Zhentiw 阅读(321) 评论(0) 推荐(0) 编辑
摘要:Sometimes we might have some expensive function to calcuate state directly from template: The ´calculate´ function is a pure function, we can use memo 阅读全文
posted @ 2019-09-02 15:40 Zhentiw 阅读(250) 评论(0) 推荐(0) 编辑
摘要:Measuring is extremely important, without numbers we don’t know about potential problems and we don’t have a base we can improve upon. Performance Bud 阅读全文
posted @ 2019-08-29 17:12 Zhentiw 阅读(227) 评论(0) 推荐(0) 编辑
摘要:In a previous lesson we learned about implementing a custom preloading strategy. That gives you a lot of control over which route to preload and which 阅读全文
posted @ 2019-08-29 17:09 Zhentiw 阅读(334) 评论(0) 推荐(0) 编辑
摘要:Preloading all modules is quite an extreme approach and might not always be desirable. For instance, you don't want to preload lazy routes a user migh 阅读全文
posted @ 2019-08-29 17:06 Zhentiw 阅读(298) 评论(0) 推荐(0) 编辑
摘要:@NgModule({ declarations: [AppComponent, HomeComponent], imports: [ BrowserModule, MatSidenavModule, BrowserAnimationsModule, RouterModule.forRoot( [ { path: '', component: HomeComponent }, { path: 'n 阅读全文
posted @ 2019-08-29 17:02 Zhentiw 阅读(315) 评论(0) 推荐(0) 编辑
摘要:We can easily code split and lazy load a route in Angular. However when the user then clicks that lazy loaded route, it make some time to actually fet 阅读全文
posted @ 2019-08-27 18:26 Zhentiw 阅读(288) 评论(0) 推荐(0) 编辑
摘要:Ever had the need for multiple "app themes", or even to completely dynamically load CSS based on which customer logs into your application? You could 阅读全文
posted @ 2019-08-22 16:18 Zhentiw 阅读(1469) 评论(0) 推荐(0) 编辑
摘要:Proxy configuration: When we have already fews applications running in the workspace, and we want to add 'api' layer for one applicatrion only, we can 阅读全文
posted @ 2019-06-18 17:36 Zhentiw 阅读(345) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。
posted @ 2019-06-07 01:34 Zhentiw 阅读(6) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。
posted @ 2019-05-12 03:20 Zhentiw 阅读(3) 评论(0) 推荐(0) 编辑
摘要:This post is based on the NG-CONF talk, check the talk by yourself. 1. Dynamiclly add Angular Element into your application: Once you have angular ele 阅读全文
posted @ 2019-05-07 02:46 Zhentiw 阅读(268) 评论(0) 推荐(0) 编辑
摘要:Based on the talk from NG-CONF. Check it out by yourself, here is just my own take away :) Differential loading: The basic idea is that, Angular will 阅读全文
posted @ 2019-05-06 23:53 Zhentiw 阅读(251) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 8 ··· 23 下一页
点击右上角即可分享
微信分享提示