angualr custom instruction link function NgModelController Formatters and parsers

Instructions are a powerful function provided by the angular framework, which is itself an MVVM framework. In custom instructions, the interaction and changes between model and view are frequent. angular provides two pipeline arrays, $Formatters & $Parsers. Let's use custom instructions to control the changes between view and model. Belo ...

Posted by Hatdrawn on Sat, 05 Jan 2019 22:51:08 -0800

Get started with p5.js Chapter 3 Pictures: Definition and Drawing Simple Shapes

Copyright Statement: This article is the original article of the blogger. It can not be reproduced without the permission of the blogger. Chapter 1 Hello: Understanding p5.js Chapter 2 begins coding: Create your first p5.js program Chapter III Painting: Definition and Drawing Simple Shapes Chapter IV Variables: Storage, Modification and R ...

Posted by wesley1189 on Tue, 25 Dec 2018 13:51:07 -0800

Angular 4 Introduction Tutorial Series: 16:NG-ZORRO: ICON/Button/Grid

NG-ZORRO is very convenient and easy to use. This article describes how to use the ICON/Button/Grid of NG-ZORRO. Button(nz-button) The properties are set as follows, which can be used in conjunction with nz-button-group attribute Explain type Default value nzType Set the button type with an optional value of primary dashed dang ...

Posted by dotMoe on Sun, 16 Dec 2018 04:18:04 -0800

Angular 4.3 HttpClient (Angular Access REST Web Services) 3. Interceptors

Interceptor One of the new features of the new HttpClient module is the availability of interceptors. The interceptor is between the application and the back end. By using interceptors, requests from applications can be converted before they are actually submitted to the back end. The response is the same: if the r ...

Posted by szym9341 on Sat, 15 Dec 2018 06:03:03 -0800

angular-HttpClient Communicates with Server Get Post Put Delete Http Interceptor Request Explanation

The exciting Angular HttpClient article has already introduced HttpClient, as you can see today. The article about HttpClient in the angular-university blog is very detailed, so I have made a simple arrangement. If you are interested, read it directly. The original text. HttpClientModule application import ...

Posted by mohson on Wed, 12 Dec 2018 13:27:06 -0800

Angular Js (4) -- Filter & $apply & $run

$scope - Local scope scope.watch - Monitor data changes (as mentioned earlier) scope.apply As mentioned in the previous article, in order to achieve data changes, views can also automatically follow changing requirements. Modify scope.name directly in the setTimeout method of the native JS, and the property will not be changed after runni ...

Posted by Oubipaws on Wed, 12 Dec 2018 07:33:06 -0800

Front-end novices use karma+mocha+chai+sinon for angular JS unit testing

Here we just talk about how to build the environment. Type selection: A comparison is made between jasmine and mocha+chai, and the latter is chosen according to the needs of the project. Installing dependency packages and environments Install directly by executing the following commands or run npm install (package. ...

Posted by bouwob on Tue, 11 Dec 2018 04:45:05 -0800

Use of Service, Factory and Provider in anjular and summary of creating objects in js

When learning the use of Service in anjular, we find that it has some connection with the way of creating objects in js. So we summarize the way of using Service, Factory and Provider in anjular and the way of creating objects in js.First, summarize several ways of creating objects in js 1. factory mode function createObject(username, passwo ...

Posted by dawnrae on Mon, 10 Dec 2018 05:54:05 -0800