0.1.7 • Published 6 years ago

ngx-nearby v0.1.7

Weekly downloads
33
License
MIT
Repository
github
Last release
6 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

6 years ago

0.1.6

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.0.1

6 years ago