angular.js - Does angularjs have a dictionary template? Are those drop-down selections written as a command, get a dictionary, and then use this command in the select tag in the future?
大家讲道理
大家讲道理 2017-05-15 17:02:28
0
1
527

Does angularjs have a dictionary template? Just write those drop-down boxes as a command, get a dictionary, and then use this command to replace the select tag in the future. There is no need to write the select options data in js?

Know how to share. Share a code framework for this function! !

Requirement: There is a file dedicated to storing dictionary data. Then, the attribute of the command can read one of the data in this file, and then it can be read out in the drop-down box...

Similar to this code pattern:
<dict:select defaultValue="true" name="GJ" id="GJ" dictName="GJ" cssClass="form-control"/>

Purpose: centralized management, code reuse.

Does anyone know? Does anyone know?

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(1)
Ty80

It is recommended that you learn directive. When you know how to write it, you can write how you want, and your ability has improved. Otherwise, you should ask for help next time if you have other needs. https://docs.angularjs.org/guide/directive

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template