Socket
Socket
Sign inDemoInstall

me.suite

Package Overview
Dependencies
8
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    me.suite

Made by the best god damn one man team ever known.


Version published
Weekly downloads
2
Maintainers
1
Created
Weekly downloads
 

Readme

Source

In TS code:

validationActive = false; validations: any = Validations; validateMe: boolean[] = []; validate($event, index){ this.validateMe[index] = $event; console.log(this.validateMe); }

In HTML:

<validate-me [value]="user.name" (valid)="validate($event, 1)" [active]="validationActive" [validations]="[validations.name]">

Things to know:

On click of your submit button, you want to call ValidateMe.valid(this.validateMe) If that value is false, set this.validationActive = true This will show all the errors in your inputs.

FAQs

Last updated on 06 May 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc