Five schemes of transferring values between angularjs controllers

Transmission value between controllers 1. Pass values from parent scope to child scope -Broadcast: broadcast from parent scope to child scope -$on() capture events <button ng-click="$broadcast('MyEvent')">$broadcast('MyEvent')</button> 2. Pass values from child scope to parent scope -Emitted: emitted from child scope up ...

Added by rejoice on Thu, 30 Apr 2020 20:42:30 +0300

OpenGL ES 3. OBJ file rendering

Hello, next I will introduce OpenGL ES 3. OBJ file rendering. The previous section introduces the OBJ file and its text structure. Next, it introduces how to load the OBJ file into memory and render it through OpenGL. 1. OBJ file parsing class Because OBJ text files are stored according to certain rules (see the previous section for de ...

Added by TalonFinsky on Wed, 08 Apr 2020 11:26:19 +0300

angularjs custom directive

order This paper describes the instruction related knowledge points of angularjs, which is an "outdated" framework. It is only for learning reference. Please understand if there is any mistake. Instruction call mode Letter style Example E element <app-hello></app-hello> A attribute ...

Added by oberwil on Wed, 01 Apr 2020 02:50:04 +0300

On the use of Acl of NG Alain

Preface Recently, angular is always used as a background system. I found the Ng Alain framework for a long time, and it's quite easy to use. It's just that the official document is a little more concise. In the process of using it, we have to combine some small examples and official demo to determi ...

Added by Calamity-Clare on Thu, 12 Mar 2020 11:24:09 +0200

Pure js realizes full screen icon rotation chart, and custom icon display quantity

Home icon carousel Function requirements: automatically generate page content according to the number of icons, complete the rotation chart of icon buttons; with the browser window zooming, make the page content automatically zooming; Extension: the number of icons per page and line can be displayed b ...

Added by colemanm on Tue, 28 Jan 2020 16:20:09 +0200

Small exercise of angularjs (dynamically generate the select drop-down box through ng repeat and ng option respectively)

This is a simple exercise about dynamically generating select There are two ways to implement it: First, through ng repeat Second, through ng option In terms of page effect, the effect of both implementations is the same But the operation of data selection is different Ng repeat selects the value corresponding to its option Ng option selects an ...

Added by mega_hurtz on Fri, 03 Jan 2020 10:52:00 +0200

WebAPI Angularjs upload file

Direct code HTML page code:   < label > resource URL < / label > <input type="text" class="form-control" id="txtSourceURL" name="txtSourceURL" Ng model = "editdata. Sourceurl" placeholder = "resource URL" ng MaxLength = "500" ><! -- file address display -- >    < butto ...

Added by Trek15 on Wed, 18 Dec 2019 20:40:15 +0200

Yard error: Could not create the Java Virtual Machine

Error message when yarn is used: Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit. 1. Check the yarn version (successful) D:\me\angular\ng-app>yarn version Hadoop 2.8.3 Subversion https://git-wip-us.apache.org/repos/asf/hadoop.git -r b3fe56402d908019d99af1f1f4fc65c ...

Added by tibo on Tue, 17 Dec 2019 20:44:40 +0200

The UI router of Angular routing

The UI router of Angular routing Explain Official website hello world Complete code Online testing supplement Design sketch Explain In the previous article, we introduced the use of the native routing of angular, but in fact, we have used very little, which is basically replaced by the third-party UI router. The differe ...

Added by arun_php on Thu, 28 Nov 2019 18:04:45 +0200

Angular Skin Change Scheme (Subject Switching)

Design sketch:Framework version:The first scheme is to use SCSS preprocessor. The idea is to control the value of custom attributes on body by clicking on events, and to switch CSS styles by using scss@mixin instructions. The specific code is implemented as follows Create new base.scss (topic parameter variable) and mixin.scss style files und ...

Added by fitzsic on Tue, 08 Oct 2019 07:08:51 +0300