0.1.7 • Published 5 years ago

ngx-nearby v0.1.7

Weekly downloads
33
License
MIT
Repository
github
Last release
5 years ago

NgxNearby

Usage

in module

import { NgxNearbyModule } from 'ngx-nearby'

@NgModule({
  declarations: [AppComponent],
  imports: [BrowserModule, NgxNearbyModule],
  providers: [],
  bootstrap: [AppComponent],
})
export class AppModule {}

in template

<div ngxNearby
    (nearby)="onNearby($event)"
    [nearbyActiveDistance]="130"
    >
    .
    .
    </div>

in component

onNearby(result: NearbyResultModel) {
    const { nearby, distance } = result
    console.log(nearby, distance)
}
0.1.7

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.0.1

5 years ago