fix(forms): fixed the selector of NgRequiredValidator

This commit is contained in:
vsavkin 2015-06-11 11:30:28 -07:00
parent 6622826587
commit 35197acc1a
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@ import {Directive} from '../../../angular2';
import {Validators} from '../validators';
import {NgControl} from '../directives';
@Directive({selector: '[required]'})
@Directive({selector: '[required][ng-control],[required][ng-form-control],[required][ng-model]'})
export class NgRequiredValidator {
constructor(c: NgControl) {
c.validator = Validators.compose([c.validator, Validators.required]);