随笔分类 -  Angular

上一页 1 2 3 4 5 6 7 8 ··· 23 下一页
摘要: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 阅读(172) 评论(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 阅读(569) 评论(0) 推荐(0)
摘要:app.component.ts: 阅读全文
posted @ 2019-10-04 23:56 Zhentiw 阅读(352) 评论(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 阅读(1366) 评论(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 阅读(360) 评论(0) 推荐(0)
摘要:Turn on runtime check: Docs 阅读全文
posted @ 2019-09-22 17:16 Zhentiw 阅读(245) 评论(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 阅读(326) 评论(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 阅读(255) 评论(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 阅读(231) 评论(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 阅读(337) 评论(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 阅读(305) 评论(0) 推荐(0)
摘要:@NgModule({ declarations: [AppComponent, HomeComponent], imports: [ BrowserModule, MatSidenavModule, BrowserAnimationsModule, RouterModule.forRoot( [ { path: '', component: HomeComponent }, { path: 'n 阅读全文
posted @ 2019-08-29 17:02 Zhentiw 阅读(318) 评论(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 阅读(293) 评论(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 阅读(1477) 评论(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 阅读(351) 评论(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 阅读(272) 评论(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 阅读(258) 评论(0) 推荐(0)
摘要:When migrating AngularJS (v1.x) applications to Angular you have different options. Using Angular Elements is one of them. In this lesson we learn how 阅读全文
posted @ 2019-03-22 16:41 Zhentiw 阅读(325) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 7 8 ··· 23 下一页