ngem-form
v1.0.12
Published
a form module for easy use
Downloads
4
Maintainers
Readme
ngem-form
> ngem-form is a simple angular1.x library created for simplifying the work I'm doing in Gemalto
Notes: Thanks for angular-formly, it teaches me a lot
requirements
- bootstrap.css
Installation
npm install --save ngem-form
list of directives
- textfield: decorated text input
- textblock: decorated textarea
Usage
input
add in your principal module
var app= angular.module("app", ["ngemForm"]);
create a textfield() in html
<textfield></textfield>
or as attribute
<div textfield></div>
configure a textfield
<textfield label="< label name >"
prehold="< preset text >"
model="< data model >"
require="< true or false >"
minlength="< number >"
maxlength="< number >"
rule="< regex expression >">
</textfield>
Note: textfield with rule could replace some input tags, for example: text, number