@ng-web-apis/geolocation
Advanced tools
Comparing version 3.0.0 to 3.0.1
{ | ||
"name": "@ng-web-apis/geolocation", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "This is a library for declarative use of Geolocation API with Angular", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -1,2 +0,2 @@ | ||
# ![ng-web-apis logo](logo.svg) Geolocation API for Angular | ||
# ![ng-web-apis logo](https://raw.githubusercontent.com/Tinkoff/ng-web-apis/main/libs/geolocation/logo.svg) Geolocation API for Angular | ||
@@ -14,3 +14,3 @@ [![npm version](https://img.shields.io/npm/v/@ng-web-apis/geolocation.svg)](https://npmjs.com/package/@ng-web-apis/geolocation) | ||
``` | ||
```bash | ||
npm i @ng-web-apis/common | ||
@@ -21,3 +21,3 @@ ``` | ||
``` | ||
```bash | ||
npm i @ng-web-apis/geolocation | ||
@@ -35,6 +35,6 @@ ``` | ||
```js | ||
```ts | ||
import {GeolocationService} from '@ng-web-apis/geolocation'; | ||
... | ||
// ... | ||
constructor(private readonly geolocation$: GeolocationService) {} | ||
@@ -45,3 +45,3 @@ ``` | ||
```js | ||
```ts | ||
geolocation$.subscribe(position => doSomethingWithPosition(position)); | ||
@@ -53,3 +53,3 @@ ``` | ||
```js | ||
```ts | ||
geolocation$.pipe(take(1)).subscribe(position => doSomethingWithPosition(position)); | ||
@@ -76,3 +76,3 @@ ``` | ||
```js | ||
```ts | ||
export class YourComponent { | ||
@@ -89,3 +89,3 @@ constructor( | ||
```js | ||
```ts | ||
@NgModule({ | ||
@@ -92,0 +92,0 @@ ... |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
103977
0