Nondeterministic Postrequisite Metaprotocol

npm

Join us for the "JavaScript Supply Chain Security" tech talk, presented by VP of Security, Adam Baldwin. 6/20 at 10am PT.Sign up here »

ng2-soil-input-form

2.1.1 • Public • Published

Angular 2 soil input form

license screenshot

An Angular2 component that allows one to insert a soil pit entry form into a project. This is highly influenced by the soil data sheets that we use here in Western Canada, but I suspect it would be a solid starting point for any soil pit data collection needs.

The project is part of the larger Saskatchewan Soil Information Systemn (SKSIS- link to come).

installation

npm i ng2-soil-input-form --save

usage

import { NgModule } from '@angular/core';
import { SoilPitFormModule } from 'ng2-soil-input-form';

@NgModule({
  imports     : [ SoilPitFormModule ]
})

export class YourModule {}
import { Component } from '@angular/core';

@Component({
    selector: 'your-component',
    template: `<soil-pit-form></soil-pit-form>`
})
export class YourComponent {}

handling data

The form will emit a soilFormSubmittedEmitter event upon submission.

<soil-pit-form (soilFormSubmittedEmitter)="yourHandlingFunctionHere($event)"></soil-pit-form>

In the near future I expect to to provide an API that will provide CRUD operations on soil pit data if you don't want to store it yourself.

install

npm i ng2-soil-input-form

Downloadsweekly downloads

3

version

2.1.1

license

MIT

last publish

collaborators

  • avatar
Report a vulnerability