npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

address-service-angular

v0.0.10

Published

hoppysearch - AngularJS client for AddressService

Downloads

3

Readme

Address Service

hoppysearch - AngularJS client for AddressService

Installation

This project was generated with Angular CLI version 17.2.0

For Angular.js

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