ng2-soil-input-form
TypeScript icon, indicating that this package has built-in type declarations

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.

Package Sidebar

Install

npm i ng2-soil-input-form

Weekly Downloads

4

Version

2.1.1

License

MIT

Last publish

Collaborators

  • kentwalters