
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
@kolkov/ngx-dadata
Advanced tools
Angular 6+ and 13+ DaData suggestion (подсказки) implementation
Angular 6+ Dadata suggestion (подсказки) implementation
Demo is here demo
Working code for this demo at stackblitz example
Install via npm package manager
npm install @kolkov/ngx-dadata --save
Import ngx-dadata
module
import { HttpClientModule } from '@angular/common/http';
...
import { NgxDadataModule } from '@kolkov/ngx-dadata';
@NgModule({
imports: [ HttpClientModule, NgxDadataModule ]
})
Then in HTML
<ngx-dadata [config]="config" [(ngModel)]="currentAddress"></ngx-dadata>
or
<ngx-dadata formControlName="currentAddress" [config]="config" (selected)="onAddressSelected($event)"></ngx-dadata>
where
import { DadataConfig } from '@kolkov/ngx-dadata';
...
config: DadataConfig = {
apiKey: 'your_api_key',
type: DadataType.address
};
onAddressSelected(event: DadataSuggestion) {
const addressData = event.data as DadataAddress;
console.log(addressData);
}
For ngModel
to work, you must import FormsModule
from @angular/forms
, or for formControlName
, you must import ReactiveFormsModule
from @angular/forms
also you may add additional options to constraint search (for example cities only):
import { DaDataConfig } from '@kolkov/ngx-dadata';
...
config: DaDataConfig = {
apiKey: 'your_api_key',
type: DaDataType.address,
locations: [
{
region: 'Самарская',
city: 'Тольятти',
}
]
};
Within the download you'll find the following directories and files. You'll see something like this:
dadata/
└── projects/
├── ngx-dadata/
└── ngx-dadata-app/
ngx-dadata/
- library
ngx-dadata-app/
- demo application
The documentation for the ngx-dadata
is hosted at our website ngx-dadata
Please read through our contributing guidelines. Included are directions for opening issues, coding standards, and notes on development.
Editor preferences are available in the editor config for easy use in common text editors. Read more and download plugins at http://editorconfig.org.
For transparency into our release cycle and in striving to maintain backward compatibility, ngx-dadata
is maintained under the Semantic Versioning guidelines.
See the Releases section of our project for changelogs for each release version.
Andrey Kolkov
FAQs
Angular 6+ and 13+ DaData suggestion (подсказки) implementation
The npm package @kolkov/ngx-dadata receives a total of 24 weekly downloads. As such, @kolkov/ngx-dadata popularity was classified as not popular.
We found that @kolkov/ngx-dadata demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.