/dugun-forms

Easy to use directives to generate form fields

Primary LanguageJavaScriptGNU General Public License v3.0GPL-3.0

Dugun-Forms

Build

  • Install Dependencies

    npm install && bower install

  • Run build function

    gulp build

Installation

  • Add repository as dependency on your bower.json

    "dugun-forms":"https://github.com/duguncom/dugun-forms.git#v1.x"

  • Add dugun.forms to your application

angular.module('YourApp',
  [
      'dugun.forms'
  ]
);

Examples

Date-Range-Picker

<input
        date-range-picker
        class="form-control date-picker opensleft"
        type="text"
        ng-model="dates"
        min="null"
        max="today"
        options="{ opens: 'left' }"
        placeholder="Tarih aralığı"
>
$scope.dates = {
    startDate: moment().startOf('month'),
    endDate: moment()
};
<dg-form-date
  ng-model="date"
  format="DD-MM-YYYY"
></dg-form-date>