Skip to content

ahmetelcik/ng2-Validator

Repository files navigation

Ng2Validator

This project was generated with Angular CLI version 1.0.0-rc.2.

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Usage

First. We will be import to app.module.ts

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { HttpModule } from '@angular/http';

import { AppComponent } from './app.component';
import { Ng2Validator } from './ng2_Validator/'
@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    FormsModule,
    HttpModule,
    Ng2Validator
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

Document of the Validators