I thought I know the Function definition, execution context and the behavior of this in JavaScript. However, I realized that actually I don't or the knowlege is still not firmly grounded in my mind when I wrote some code similar to below snippet b...
After translated a blog about how Promise works in a more functional programming way, I tried to build something to make Ext Ajax call to work in Promise style as a practice.
呵呵,我的博客有点乱和另类,试一下水, 别拍砖太狠。 回调函数是指令式的,Promise 是函数式的:Node 错失的最大机会 How to Verify JSON Data With AngularJS $httpBackend Expression in AngularJS Must Be Idempotent and for Multiple Calls How to Use Ext Aja...
Recently, I encounter two very interesting issues when using ng-repeat in AngularJS. Not completely understanding the $watch and $digest() is the root cause.
When we are writing Unit Test for AngularJS Controller or Service, it's pretty common to verify the data posted to server using $httpBackend in ngMock module.