7.0.1 • Published 7 years ago

kros-website-company-catalog v7.0.1

Weekly downloads
156
License
-
Repository
-
Last release
7 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

7 years ago

2.0.6

7 years ago

2.0.5

7 years ago

2.0.4

7 years ago

2.0.3

7 years ago

2.0.2

7 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.0.53

7 years ago

1.0.52

7 years ago

1.0.51

7 years ago

1.0.50

7 years ago

1.0.48

7 years ago

1.0.47

7 years ago

1.0.45

7 years ago

1.0.43

7 years ago

1.0.41

7 years ago

1.0.40

7 years ago

1.0.30

7 years ago

1.0.29

7 years ago

1.0.28

7 years ago

1.0.27

7 years ago

1.0.26

7 years ago

1.0.25

7 years ago

1.0.24

7 years ago

1.0.23

7 years ago

1.0.21

7 years ago

1.0.20

7 years ago

1.0.19

7 years ago

1.0.18

7 years ago

1.0.17

7 years ago

1.0.16

7 years ago

1.0.15

7 years ago

1.0.14

7 years ago

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.1

7 years ago

1.0.2

7 years ago

1.0.0

7 years ago

0.0.10

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago