0.1.7 • Published 7 years ago

ngx-nearby v0.1.7

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

7 years ago

0.1.6

7 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.0.1

7 years ago