angularjs http and background interaction

1. description Whether using angularjs as the front-end or combining with ionic to develop mobile app, it needs to interact with the back-end, and angular provides httpModule module for us to use. Today we will show a specific process of encapsulation and use of http. 2. HttpModule introduction Find the app.module.ts file import { NgModule, Err ...

Posted by aswini_1978 on Sun, 01 Dec 2019 18:50:20 -0800

angular4 method of parent component passing value to child component and child component passing value to parent component

Parent component passes value @ Input to child component File directory Parent component: father.template.html <h1>Parent component</h1> <cmt-child [data]='data'></cmt-child> father.component.ts import { Component, OnInit } from '@angular/core'; @Component({ selector: 'cmt-father', templateUrl: './father.temp ...

Posted by j.smith1981 on Sat, 30 Nov 2019 13:42:26 -0800

Make your own page stack in angular

The project needs to develop a forward and backward button component similar to the bottom when wechat opens a web page. It can determine whether the button is forward and backward according to the location of the route stack, and change the corresponding color of the button, which requires making a page stack. The idea is to know the number of ...

Posted by Liz_SA on Thu, 28 Nov 2019 06:12:15 -0800

Interaction between angularJS custom instructions

angularJS custom instruction Include: used when element labels need to be nested, in combination with ng include. The default value is false. Nesting cannot be used. true means nesting can be used. Using ng translate on which label is nested in which label. Code example: (replace hello and hi tags and nest span tags in div) <script type="tex ...

Posted by sorenchr on Thu, 21 Nov 2019 06:33:39 -0800

Premium Purchase (IDEA version) - Next day

Premium Purchase - Day 2 Learning Objectives Goal 1: Common instructions for using the Angular JS front-end framework Goal 2: Complete the list function of brand management Goal 3: Complete Brand Management Paging List Goal 4: Complete the added function of brand management Goal 5: Complete the modification function of brand management Goal 6: ...

Posted by cstegner on Thu, 14 Nov 2019 12:28:40 -0800

The checkbox is re rendered, and the selected value is retrieved after editing.

https://www.jianshu.com/p/89e17612e58d When making a checkbox for a form, there are generally the following situations: Save only the selected value: the foreground only obtains the value of the selected checkbox, and then passes it to the background for saving. Rendering only: the foregr ...

Posted by superman on Sun, 27 Oct 2019 19:56:32 -0700

node.js segment point renewal: the implementation method of Nginx configuration file segment download function ﹣ node.js

This tag can be configured in Node.JS to realize the segmented download of files. This article introduces Node.JS segment point continuation: the implementation method of Nginx configuration file segment download function. Please refer to it for your reference. Html5 provides a new Range tag to implemen ...

Posted by BinaryBird on Thu, 24 Oct 2019 02:42:02 -0700

The principle of creating dynamic pie chart with path of svg

There are three steps: Fan shaped Draw a circle with a fan Animating The following three steps are detailed Fan shaped As mentioned in the previous article, the command of drawing arc is also used in the previous article. If you don't know clearly, you can go to my previous article: path application of svg , let's briefly mention it here Fir ...

Posted by RottenBananas on Tue, 22 Oct 2019 18:15:27 -0700

Build your own HTML/CSS/JavaScript real-time editor

Please indicate the source of Reprint: Official website of grape City Grape city provides developers with professional development tools, solutions and services to enable developers.Source: https://blog.bitsrc.io/build-an-html-css-js-playground-64c62133746d   At present, there are many similar platforms and schemes on the market, such as ...

Posted by ChompGator on Sun, 20 Oct 2019 20:47:48 -0700

sortablejs ---- sorting plug-in

I. what is Sortable Sortable is a JavaScript library for reordering drag and drop listsTwo. Characteristics1. Support touch devices and modern browsers (including IE9) 2. You can drag from one list to another or from the same list 3. CSS animation when dragging 4. Support drag handle and optional text 5 ...

Posted by jib on Fri, 18 Oct 2019 08:39:10 -0700