Method and system for realizing Angular response type form control linkage
An implementation method and a technology for implementing a system, which are applied in program control devices, user interface execution, etc., can solve problems such as not knowing how to deal with them, and achieve the effects of reducing workload, promoting application value, and concise code.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment
[0035] The implementation method of the Angular responsive form control linkage of the present invention, the method binds multiple input controls to the same FormControl, when the user enters through the bound input control on the interface, triggers the valueChanges of the FormControl, and the valueChanges monitors the input value. Changes, and at the same time update the displayed values of all controls bound under the FormControl to achieve control linkage.
[0036] In the Angular responsive form component, in the hook interface of the component OnInit, after the form is initialized, monitor the FormControl that wants to realize the linkage of multiple controls. Since FormControl has a valueChanges observable object, subscribing to valueChanges realizes the monitoring of FromControl.
[0037] Pass the value entered by the user through the setValue() method of FormControl, and set emitEvent to false as the property of the opt parameter in the setValue() method, so that ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com