Angular JS drop-down box for rendering html

(angualrjs are considered safe, and the interpolation instructions filter the corresponding strings to avoid HTML attacks.But there are times when we need to render html, such as implementing a hierarchical drop-down box with the following code: 1 <body ng-app="app" ng-controller="controller"> 2 <select ng-model="value" ng-option ...

Posted by dankstick on Fri, 21 Jun 2019 18:31:41 +0200

About Angular 2 Component Communication--A Summary of My Own Points

Here is a simple record of how you communicate with components in angular 2. Convenient for future use. I. Ways of Communication between Components Using Event Emitter, @Output: Scenario: It is possible to communicate between parent and child components. It is commonly used to pass messages from child components to parent components. Step: a. ...

Posted by inosent1 on Mon, 17 Jun 2019 00:21:08 +0200

MVC, Modularization, Dependency Injection of Basic Concepts and Usages of angualrJS

MVC <!doctype html> <html ng-app> <head> <meta charset="utf-8"> </head> <body> <div ng-controller="HelloAngular"> <p>{{greeting.text}},Angular</p> </div> </body> <script src="js/angular-1.3.0.js"></script> ...

Posted by entropicsinkhole on Sun, 09 Jun 2019 00:24:43 +0200

English sentences that everyone can understand

English sentences that everyone can understand When I began to learn to write articles, I hesitated. I thought that I could not pass CET-4 and spoken English. Why should I write such articles? When I saw the students at the front of the beginner's entrance constantly consulting and questioning others, I thought of writing an article to tell tho ...

Posted by cdhogan on Thu, 06 Jun 2019 01:30:00 +0200

In Angular, use ng-img-max to adjust images in browsers

You want to upload pictures in Angular applications. Do you want to limit the size of uploaded pictures at the front end before uploading them? The ng2-img-max module is exactly what you want! The ng2-img-max module uses web sorkers to calculate the image size and resides in the main thread. Let's look at his use: install First, install modules ...

Posted by jgetner on Tue, 04 Jun 2019 06:50:39 +0200

Dynamic components for single-page applications (non-routing jumps)

Another approach is to apply angular single page to realize non-routing single page Jump by dynamically generating component method and cooperating with tabView component of primeNG UI Library Dynamic Component Loader Templates for components will not always be fixed. Applications may need to load some new components during runtime. T ...

Posted by doucie on Mon, 27 May 2019 21:12:48 +0200

golang foundation (33) exception handling

golang_real.jpg Beginners tend to ignore exception handling in the program, thinking that the program is always running in a cared-for environment, without any wind or rain, because we are the most knowledgeable people of our program. So we know what he likes, what he can eat and what he can't eat. But one day he returned to ...

Posted by spartan789 on Fri, 17 May 2019 14:49:32 +0200

The Difference of computed, methods and watch in Vuejs

Recently, I have been learning the front-end Vuejs. For novices, I don't understand the difference between computed, methods and watch in Vuejs. In fact, the official documents are clear, but for novices, it is still unclear. Address: https://cn.vuejs.org/v2/api/#computed 1#computed: Computed properties will be mixed i ...

Posted by Bean Boy on Fri, 17 May 2019 14:34:06 +0200

Angular-Search Box and Price Limit

Angular-Search Box and Price Limit Write a simple angular search box. 1. requirements: Using Angular JS framework to realize mobile phone product search function, Title requirements: 1) Find the material by oneself and enrich the data of mobile phone products to at least 10 or more according to the original data format. 2) Self-designed pa ...

Posted by FrobinRobin on Wed, 15 May 2019 05:56:48 +0200

ng-book Notes: Dependency Injection

Dependency injection is a system that enables one part of a program to access another part and control its behavior through configuration. "Injection" can be understood as an alternative to the "new" operator, which no longer requires the use of the "new" operator provided by the programming language and relies on ...

Posted by limao on Tue, 14 May 2019 15:50:08 +0200