7.0.1 • Published 6 years ago

kros-website-company-catalog v7.0.1

Weekly downloads
156
License
-
Repository
-
Last release
6 years ago

This is Angular component for searching in company catalog.

Example:

In NgModule (xxx.module.ts):

import { CompanyCatalogModel } from 'kros-website-company-catalog';
...
imports: [
    ...
    CompanyCatalogModule.forRoot("API_URL") // Where API_URL is Url for searching api
  ],

In template (xxx.component.html):

<kros-website-company-catalog [name]="name"
                   (selectCompany)="onSelectCompany($event)">
    <label [for]="name">
        Company name*
    </label>
    <input [id]="name"
           #searchInput
           #searchModel="ngModel"
           type="text"
           name="search-text"
           autocomplete="off"
           class="form-control textbox"
           [class.invalid-textbox]="isInvalid(searchModel)"
           [(ngModel)]="model.billingAddress.recipient"
           required />
</kros-website-company-catalog>

In component (xxx.component.ts):

import { CompanyCatalogModel } from 'kros-website-company-catalog';
...
onSelectCompany(companyCatalogModel: CompanyCatalogModel) {
    this.model.billingAddress.recipient = companyCatalogModel.name;
    this.model.registrationId = companyCatalogModel.registrationId;
    this.model.taxId = companyCatalogModel.taxId;
    this.model.vatId = companyCatalogModel.vatId;
    this.model.billingAddress.street = companyCatalogModel.street;
    this.model.billingAddress.town = companyCatalogModel.town;
    this.model.billingAddress.postalCode = companyCatalogModel.postCode;
}

Created by this tutorial: https://github.com/angular/angular-cli/wiki/stories-create-library

Tutorial (How to Publish & Update a Package): https://docs.npmjs.com/getting-started/publishing-npm-packages

7.0.1

6 years ago

2.0.6

6 years ago

2.0.5

6 years ago

2.0.4

6 years ago

2.0.3

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.0.53

6 years ago

1.0.52

6 years ago

1.0.51

6 years ago

1.0.50

6 years ago

1.0.48

6 years ago

1.0.47

6 years ago

1.0.45

6 years ago

1.0.43

6 years ago

1.0.41

6 years ago

1.0.40

6 years ago

1.0.30

6 years ago

1.0.29

6 years ago

1.0.28

6 years ago

1.0.27

6 years ago

1.0.26

6 years ago

1.0.25

6 years ago

1.0.24

6 years ago

1.0.23

6 years ago

1.0.21

6 years ago

1.0.20

6 years ago

1.0.19

6 years ago

1.0.18

6 years ago

1.0.17

6 years ago

1.0.16

6 years ago

1.0.15

6 years ago

1.0.14

6 years ago

1.0.12

6 years ago

1.0.11

6 years ago

1.0.10

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.1

6 years ago

1.0.2

6 years ago

1.0.0

6 years ago

0.0.10

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago