随笔分类 -  AngularJS

1 2 3 4 5 ··· 12 下一页
摘要:drcorator should be named as '<directive_name>Directive': 阅读全文
posted @ 2020-01-20 20:30 Zhentiw 阅读(104) 评论(0) 推荐(0) 编辑
摘要:/** * Module definition and dependencies */ angular.module('App.Child', []) /** * Component */ .component('child', { templateUrl: 'child.html', controller: 'ChildCtrl', }) /** * Controller */ .control 阅读全文
posted @ 2019-09-06 18:00 Zhentiw 阅读(300) 评论(0) 推荐(0) 编辑
摘要:Imaging you have a large application, inside this large application you have many small individual applications. main app / | \ small A Small B Small 阅读全文
posted @ 2019-05-20 15:51 Zhentiw 阅读(212) 评论(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 阅读(316) 评论(0) 推荐(0) 编辑
摘要:HTML: Component Controller: Testing: 阅读全文
posted @ 2018-11-22 19:56 Zhentiw 阅读(612) 评论(0) 推荐(0) 编辑
摘要:The component test: 阅读全文
posted @ 2018-11-14 17:06 Zhentiw 阅读(257) 评论(0) 推荐(0) 编辑
摘要:For example when a outside application need to visit your app address: https://www.example.com/#/lobby/abc But before enter '/lobby/abc', user need to 阅读全文
posted @ 2018-09-05 03:07 Zhentiw 阅读(372) 评论(0) 推荐(0) 编辑
摘要:Recentlly works with AngularJS + ocLazyLoad, our project have break down into multi small modules. For example mainApp module | -- vendor module | -- 阅读全文
posted @ 2018-08-29 00:48 Zhentiw 阅读(242) 评论(0) 推荐(0) 编辑
摘要:Problem with ngModleOptions before 1.6: You repeat a lot, code doesn't look nice, from v1.6: We also have the ability to override specific options, wh 阅读全文
posted @ 2018-08-14 15:33 Zhentiw 阅读(219) 评论(0) 推荐(0) 编辑
摘要:When you have a checkbox, not necessary that just 'ture' & 'false', you might have 'yes', 'no', '1', '0': There is how to use ng-true-value and ng-fal 阅读全文
posted @ 2018-02-03 04:38 Zhentiw 阅读(1051) 评论(0) 推荐(0) 编辑
摘要:When you occured this problem, check few things: 2. About translations, sometime angular-translate also have problems with that: 阅读全文
posted @ 2017-08-11 18:25 Zhentiw 阅读(141) 评论(0) 推荐(0) 编辑
摘要:Using it: 阅读全文
posted @ 2017-05-19 15:53 Zhentiw 阅读(215) 评论(0) 推荐(0) 编辑
摘要:In this lesson, we are going to learn how to integrate Redux Devtools into our Angular application. Redux Devtools is a live-editing time travel envir 阅读全文
posted @ 2016-11-15 19:03 Zhentiw 阅读(390) 评论(0) 推荐(0) 编辑
摘要:Invariably the question that comes up when talking about Redux is how does one handle asynchronous operations in redux. For instance, how do we hand o 阅读全文
posted @ 2016-11-14 20:31 Zhentiw 阅读(504) 评论(0) 推荐(0) 编辑
摘要:In this lesson, we are going to learn how to map our Angular component directly to our application store using the connect method on ngRedux. In Angul 阅读全文
posted @ 2016-11-14 19:26 Zhentiw 阅读(460) 评论(0) 推荐(0) 编辑
摘要:The first things we need to do is create a reducer: It has some default initialize data. What it does is just simply return the state. Then let's crea 阅读全文
posted @ 2016-11-09 17:25 Zhentiw 阅读(523) 评论(0) 推荐(0) 编辑
摘要:Pleasea refer to Link 阅读全文
posted @ 2016-11-08 16:39 Zhentiw 阅读(224) 评论(0) 推荐(0) 编辑
摘要:Traditionally you had to create DOM elements to test a directive but by shifting our focus to components, writing unit tests got a lot easier using $c 阅读全文
posted @ 2016-09-08 20:26 Zhentiw 阅读(302) 评论(0) 推荐(0) 编辑
摘要:Managing state is one of the hardest things to do in any application. Angular 2 tackles this problem by making it easy to implement a reactive, uni-di 阅读全文
posted @ 2016-09-08 18:04 Zhentiw 阅读(219) 评论(0) 推荐(0) 编辑

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