open-index/open-npm huggingface dataset:
npm package: @ng-lv/logging
Description: ## Usage
Author: LVM
Latest version: 1.0.2

# @ng-lv/logging

## Usage

### Usage in Code

#### Dependency Import
 
>     npm install @ng-lv/logging --save-dev 

or add to package.json
>     "dependencies": {    
>         "@ng-lv/logging": "1.0.0"
>      }

#### Module Import

```javascript
     import { LoggingModule } from '@ng-lv/logging';

     @NgModule({  
       imports: [
         LoggingModule,
         ...
```

#### Logger Construction and Usage
```typescript
     import { Logger, LogManager } from '@ng-lv/logging';
     @Injectable()
     export class AClassWithLogging {
           private logger: Logger;
 
           constructor(private logManager: LogManager) {
              // create Logger with Class Context
              this.logger = logManager.getLogger(this);

              // create logger with Context Hierarchy
              // now you are able to switch all Logger in context ['c1','c2'] to debug level for example  
              this.logger.debug(['c1','c2','c3']);

              // use Logger  
              this.logger.debug('Hello ..');
             
           }
```

#### Access to the Logging Facility via Browser Console
```typescript
     LogManager         :  log.logmanager   
     registered Logger  :  log.map
     set log level      :  log.logmanager.setCurrentLogLevel(4, ['c1','c2'])

     export enum LogLevel {
        Nothing, // 0
        Verbose, // 1
        Debug,   // 2
        Info,    // 3
        Warning, // 4
        Error,   // 5
        Critical // 6
     }



```

## Development server
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.


## Build

Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `-prod` flag for a production build.

## Running unit tests

Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).

Run `ng test --code-coverage --single-run` to create a test coverage Report


## Running end-to-end tests

Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).
Before running the tests make sure you are serving the app via `ng serve`.
npm package: @ng-maps/direction
Description: [@ng-maps/direction](https://github.com/@ng-maps/direction) is the directive for [@ng-maps/core](https://github.com/ng-maps/ng-maps)
Latest version: 0.1.0

# @ng-maps/direction

[@ng-maps/direction](https://github.com/@ng-maps/direction) is the directive for [@ng-maps/core](https://github.com/ng-maps/ng-maps)

- Angular
- Google Map API

![@ng-maps/direction](https://i.imgur.com/DCIoXqS.jpg)

## Credit

#### [SebastianM/angular-google-maps](https://github.com/SebastianM/angular-google-maps) - [Directions service #495](https://github.com/SebastianM/angular-google-maps/issues/495)

#### [explooosion/Agm-Direction](https://github.com/explooosion/Agm-Direction)

## Installation

Installation is done using the
[`npm install` command](https://docs.npmjs.com/getting-started/installing-npm-packages-locally):

```sh
npm install @ng-maps/direction
# or
yarn add @ng-maps/direction
```

## Importing Modules

```typescript
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';

import { NgMapsCoreModule } from '@ng-maps/core';
import { NgMapsGoogleModule } from '@ng-maps/google';
import { NgMapsDirectionModule } from '@ng-maps/direction';

@NgModule({
  declarations: [AppComponent],
  imports: [
    BrowserModule,
    NgMapsCoreModule, //@ng-maps/core
    NgMapsGoogleModule, //@ng-maps/google
    NgMapsDirectionModule, //@ng-maps/direction
  ],
  providers: [
    {
      provide: GOOGLE_MAPS_API_CONFIG,
      useValue: {
        apiKey: 'YOUR_API_KEY',
      },
    },
  ],
  bootstrap: [AppComponent],
})
export class AppModule {}
```

## Usage

HTML

```html
<map-view [latitude]="lat" [longitude]="lng">
  <map-direction [origin]="origin" [destination]="destination"> </map-direction>
</map-view>
```

CSS

```css
map-view {
  height: 400px;
}
```

TS

```typescript
public lat = 24.799448;
public lng = 120.979021;

public origin: any;
public destination: any;

ngOnInit() {
  this.getDirection();
}

getDirection() {
  this.origin = { lat: 24.799448, lng: 120.979021 };
  this.destination = { lat: 24.799524, lng: 120.975017 };

  // Location within a string
  // this.origin = 'Taipei Main Station';
  // this.destination = 'Taiwan Presidential Office';
}
```

## Document

- Document [ng-maps-Docs](https://github.com/ng-maps/ng-maps#packages)

## License

[MIT](http://opensource.org/licenses/MIT)