address-service-angular
TypeScript icon, indicating that this package has built-in type declarations

0.0.10 • Public • Published

Address Service

hoppysearch - AngularJS client for AddressService

Installation

This project was generated with Angular CLI version 17.2.0

What You Get:

  1. Simplify your integration process with this user-friendly Angular component.
  2. Automatic suggestions for the Address input field.
  3. Address fields auto-populate upon users selection.
  4. Editable data fields allowing users to easily update their information, including the option to input addresses effortlessly.

To preview the future appearance of the Angular Component, visit the following website:Address Service Angular Demo

npm

Proceed with the installation by following these steps:

npm install address-service-angular --save

Getting Started

Please follow the installation instructions and execute the following AngularJS code:

Begin with the initial setup process:

  1. Add Angular Material to your project:

cmd

ng add @angular/material
  1. Install the required Axios library:

cmd

npm i axios
  1. Install the address-service-angular package in your Angular project:

cmd

npm i address-service-angular
  1. Import the AddressServiceAngularComponent in your Angular component:

typescript

import { AddressServiceAngularComponent } from 'address-service-angular';
  1. Add the component to your Angular module imports:

typescript

@Component({
        imports: [RouterOutlet, AddressServiceAngularComponent],
})
  1. Add the component tag in your HTML file:

HTML

<lib-address-service-angular></lib-address-service-angular>
  1. If you want to access/modify the selected adderess, then create a function and bind that function to component tag in HTML file like below.

typescript

<!-- Full Code -->
import { Component } from '@angular/core';
import { RouterOutlet } from '@angular/router';
import { AddressServiceAngularComponent } from 'address-service-angular';

@Component({
        selector: 'app-root',
        standalone: true,
        imports: [RouterOutlet,AddressServiceAngularComponent],
        templateUrl: './app.component.html',
        styleUrl: './app.component.css'
})
export class AppComponent {
        title = 'address-service';
        handleAddressChange(data: any) {
                console.log('Received data from child:', data);
        }
}

HTML

<lib-address-service-angular (onAddressChange)="handleAddressChange($event)"></lib-address-service-angular>
  1. And Run ng serve for a dev server. Navigate to http://localhost:3000/. The application will automatically reload if you change any of the source files.

cmd

ng serve

If you need video help to install Address Service Angular package then watch this video:Address Service Angular Demo

You will get such a result:

  1. You can type the address you want to search here. alt text
  2. Now click on the address you want. alt text

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i address-service-angular

    Weekly Downloads

    0

    Version

    0.0.10

    License

    none

    Unpacked Size

    71.8 kB

    Total Files

    10

    Last publish

    Collaborators

    • hoppysoft-akshay