@angularclass/form-errors
Advanced tools
Comparing version 1.0.3 to 2.0.0
@@ -1,2 +0,2 @@ | ||
import { NgForm } from '@angular/common'; | ||
import { NgForm } from '@angular/forms'; | ||
export declare class AcFormErrors { | ||
@@ -3,0 +3,0 @@ formDir: NgForm; |
@@ -15,3 +15,3 @@ "use strict"; | ||
var core_1 = require('@angular/core'); | ||
var common_1 = require('@angular/common'); | ||
var forms_1 = require('@angular/forms'); | ||
var AcFormErrors = (function () { | ||
@@ -55,3 +55,3 @@ function AcFormErrors(formDir) { | ||
__param(0, core_1.Host()), | ||
__metadata('design:paramtypes', [common_1.NgForm]) | ||
__metadata('design:paramtypes', [forms_1.NgForm]) | ||
], AcFormErrors); | ||
@@ -58,0 +58,0 @@ return AcFormErrors; |
{ | ||
"name": "@angularclass/form-errors", | ||
"version": "1.0.3", | ||
"version": "2.0.0", | ||
"author": "Partick Stapleton <patrick@angularclass.com>", | ||
"description": "Angular 2 Form Errors", | ||
"description": "Angular 2 Form Errors - like ngMessages in AngularJS but for Angular 2", | ||
"main": "dist/index.js", | ||
@@ -23,11 +23,12 @@ "typings": "dist/index.d.ts", | ||
"devDependencies": { | ||
"@angular/http": "2.0.0-rc.1", | ||
"@angular/common": "2.0.0-rc.1", | ||
"@angular/compiler": "2.0.0-rc.1", | ||
"@angular/core": "2.0.0-rc.1", | ||
"@angular/platform-browser": "2.0.0-rc.1", | ||
"@angular/platform-browser-dynamic": "2.0.0-rc.1", | ||
"@angular/platform-server": "2.0.0-rc.1", | ||
"@angular/router": "2.0.0-rc.1", | ||
"@angular/router-deprecated": "2.0.0-rc.1", | ||
"@angular/http": "2.0.0-rc.2", | ||
"@angular/common": "2.0.0-rc.2", | ||
"@angular/compiler": "2.0.0-rc.2", | ||
"@angular/forms": "~0.1.0", | ||
"@angular/core": "2.0.0-rc.2", | ||
"@angular/platform-browser": "2.0.0-rc.2", | ||
"@angular/platform-browser-dynamic": "2.0.0-rc.2", | ||
"@angular/platform-server": "2.0.0-rc.2", | ||
"@angular/router": "2.0.0-rc.2", | ||
"@angular/router-deprecated": "2.0.0-rc.2", | ||
@@ -34,0 +35,0 @@ "core-js": "^2.4.0", |
import { Component, Host } from '@angular/core'; | ||
import { NgForm, ControlGroup } from '@angular/common'; | ||
import { NgForm } from '@angular/forms'; | ||
@@ -26,3 +26,3 @@ @Component({ | ||
get errorMessages(): Array<{type: string, message: string}> { | ||
var form: ControlGroup = this.formDir.form; | ||
var form = this.formDir.form; | ||
var control = form.find(this.controlPath); | ||
@@ -29,0 +29,0 @@ var _errors = []; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18379
21
1