Revealing A ngular 2 (1): Introduction to TypeScript

3.1 Overview of TypeScript 3.1.1 overview 3.1.2 installation Check whether npm is installed Next, we use the 2.0 official version of TypeScript. The installation commands are as follows: npm install -g typescript@2.0.0 Write the first Typescript program and save it to hello.ts. The code in the file is as follows: console.log('hel ...

Posted by newcastle_unite on Wed, 03 Apr 2019 09:18:32 -0700

Drawing the circumscribed circle and the circumscribed circle of a triangle

It is known that the three vertex coordinates of a triangle are used to find the circumscribed circle and the circumscribed circle of the triangle. A triangle has a center of gravity, a center of gravity, a center of gravity, a center of gravity, a center of gravity, a center of gravity, and a center of gravity. The outer center, the center ...

Posted by achild on Sun, 31 Mar 2019 16:00:29 -0700

Writing by buzz for Angular 2 single page application

Characteristics of Single Page Application advantage Inferiority Programming development environment New project Main concepts Component componentts componenthtml Association and Binding Data and Behavior of Compoonentts and Compoonenthtml Route Routing declaration Routing instance service Examples encapsulate routing jumps as ...

Posted by Nadzree on Sun, 31 Mar 2019 15:18:30 -0700

angular routing, ui-router,ocLazyLoad usage

angular for beginners. Please point out the mistakes. Thank you. 1.angular routing, modularization, replacement of html content to replace the display of the page. 2. After routing is established, ui-router is used to change content in two (or more) different places of the page at the same time. 3. If it is not a small project, all t ...

Posted by Kifebear on Sat, 30 Mar 2019 18:45:27 -0700

Changing the development process of angular JS from single-choice to multiple-choice

Simple requirement: The drop-down box used to be radio, but now it wants to be multiple. Development process: Question 1: The first thing I want to think about is to find an example on the Internet and find that angular JS seems to have corresponding JS packages to implement, the most of which are isteven-multi-select and angular js-dropdown- ...

Posted by aynsoft on Fri, 29 Mar 2019 08:33:29 -0700

zone.js - Beauty of Violence

From: http://www.cnblogs.com/whitewolf/p/zone-js.html During the development of ng2, the Angular team brought us a new library, zone. js. zone.js was inspired by Dart language, which describes the context of JavaScript execution and allows persistent transfer between asynchronous tasks, similar to TLS in Java.( thread-local storage: T ...

Posted by geroido on Wed, 27 Mar 2019 22:09:29 -0700

Combining State Machine Development Style

Based on the HTML 5 version of XXX, this paper discusses the idea and practice of state machine development. Selection and Use of State Machine statechart.js. Starting knowledge For an introduction to state machines, please refer to Statecharts and Angular.js The basic usage of statechart.js, please refer to statechart.js Especially t ...

Posted by Pinkerbot on Tue, 26 Mar 2019 19:36:28 -0700

Anguler JS Learning (V) On-demand Dynamic Loading of Files

Before that, I need to know a few things first. $q Introduction: $q: The main problem is asynchronous programming, which describes the interaction between the results of an action executed asynchronously on behalf of an object through a commitment behavior, and may or may not be completed at any time. We understand the $q service through a ...

Posted by NogDog on Tue, 26 Mar 2019 14:54:30 -0700

angular Learning (11) - Forms

form Control is mainly used to receive user input, such as input, select, textarea. Form is a collection of related controls. Form and control provide validation services and can be notified of invalid input before the user submits the form to the back end. A simple form form validation is much better than server-side validation because f ...

Posted by Zangakat on Mon, 25 Mar 2019 07:36:30 -0700

(6) Angular JS 1.X instructions related to page control

Introduction Angular JS controls page elements 1 ng-if instruction control page 11 Code Instances 2 ng-repeat instruction control page 21 Code Implementation 3 ng-switch instruction control page 31 Code Implementation 4 ng-show instruction control page 41 Code Implementation 5 ng-include instruction control page 51 ng-include ...

Posted by jefftanner on Sun, 24 Mar 2019 02:39:28 -0700