![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
@afd-software/pce-angular
Advanced tools
Angular module that allows for easy integration of AFD Software's powerful PCE address lookup and form validation engine.
The AFD PCE Angular module makes it easy to quickly add TypeAhead and advanced field validation to front end Angular applications.
TypeAhead Address lookup can be done for all countries.
Form control validation is available for the following fields:
The following is a simple example of a TypeAhead control and some result fields.
First, install the module npm install --save @afd-software/pce-angular
Then add the module:
// app.module.ts
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { HttpClientModule } from '@angular/common/http';
import { FormsModule } from '@angular/forms';
import { AfdPceAngularModule } from '@afd-software/pce-angular';
....
@NgModule({
declarations: [
AppComponent,
....
],
imports: [
BrowserModule,
HttpClientModule,
FormsModule,
AfdPceAngularModule,
....
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
Setup the module:
//app.component.ts
import {Component, OnInit} from '@angular/core';
import {AfdPceService} from '@afd-software/pce-angular';
@Component({
.....
})
export class AppComponent implements OnInit {
constructor(
public afdPceService: AfdPceService
){}
ngOnInit(){
this.afdPceService.settings.afdSerial = 'YOUR SERIAL';
this.afdPceService.settings.afdPassword = 'YOUR PASSWORD';
}
}
Add the controls to the component:
<!-- app.component.html -->
<div class="form-control">
<label for="afd-typeahead">TypeAhead</label>
<afd-typeahead-component id="afd-typeahead"></afd-typeahead-component>
</div>
<div class="form-control">
<label for="postcode">Postcode</label>
<input afdResult="Postcode" id="postcode">
</div>
<div class="form-control">
<label for="property">Property</label>
<input afdResult="Property" id="property">
</div>
<div class="form-control">
<label for="street">Street</label>
<input afdResult="Street" id="street">
</div>
<div class="form-control">
<label for="town">Town</label>
<input afdResult="Town" id="town">
</div>
This component now has full TypeAhead functionality.
The module offers validation for Phone Numbers, Email Addresses, Card Validation, and Account Validation. In addition to checking the validity of the controls, additional information can be extracted from certain fields. For example, with card validation it is possible to extract the card type so that card graphics can be displayed along side the field as the user types.
The following is an example of how to add phone number validation:
<!--app.component.html-->
<div class="form-control">
<input
type="tel"
afdPhoneRegexValid
afdPhonePceValid
#phoneControl="ngModel"
[(ngModel)]="phone"
>
<span *ngIf="phoneControl.hasError('required')" class="error">This field is required</span>
<span *ngIf="phoneControl.hasError('afdPhoneRegexValid')" class="error">{{phoneControl.errors.afdPhoneRegexValid.message}}</span>
<span *ngIf="phoneControl.hasError('afdPhonePceValid')" class="error">{{phoneControl.errors.afdPhonePceValid.message}}</span>
</div>
Full documentation of the extended features of this module can be found here.
We offer both a hosted version of PCE and a local installed version. To get started with either of these please request an evaluation, postcode@afd.co.uk.
FAQs
Angular module that allows for easy integration of AFD Software's powerful PCE address lookup and form validation engine.
The npm package @afd-software/pce-angular receives a total of 7 weekly downloads. As such, @afd-software/pce-angular popularity was classified as not popular.
We found that @afd-software/pce-angular demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.