ngem-form

1.0.12 • Public • Published

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

Package Sidebar

Install

npm i ngem-form

Weekly Downloads

1

Version

1.0.12

License

MIT

Last publish

Collaborators

  • zhengrui