Skip to content

Commit

Permalink
Merge pull request #57 from explooosion/dev
Browse files Browse the repository at this point in the history
Dev - 0.7.5
  • Loading branch information
explooosion authored Nov 22, 2018
2 parents bcd150d + d563a25 commit 00bf567
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 43 deletions.
34 changes: 16 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,25 +26,23 @@ Installation is done using the

- Use npm
```bash
npm install --save @agm/core
npm install --save agm-direction
npm install --save @agm/core agm-direction
```

- Use yarn
```bash
yarn add @agm/core
yarn add agm-direction
yarn add @agm/core agm-direction
```

## Importing Modules

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

import { AgmCoreModule } from '@agm/core' // @agm/core
import { AgmDirectionModule } from 'agm-direction' // agm-direction
import { AgmCoreModule } from '@agm/core'; // @agm/core
import { AgmDirectionModule } from 'agm-direction'; // agm-direction

@NgModule({
declarations: [
Expand Down Expand Up @@ -85,22 +83,22 @@ agm-map {
TS

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

public origin: any
public destination: any
public origin: any;
public destination: any;

ngOnInit() {
this.getDirection()
this.getDirection();
}

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

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

Expand Down
14 changes: 1 addition & 13 deletions docs/dependencies.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,26 +46,14 @@



<ol class="breadcrumb">
<li>Dependencies</li>
</ol>
<ul class="dependencies-list">
<li>
<b>@agm/core</b> : ^1.0.0-beta.5</li>
<li>
<b>tslib</b> : ^1.9.0</li>
</ul>


<br/>
<ol class="breadcrumb">
<li>Peer dependencies</li>
</ol>
<ul class="dependencies-list">
<li>
<b>@angular/common</b> : &gt;&#x3D; 7.0.0</li>
<li>
<b>@angular/core</b> : &gt;&#x3D; 7.0.0</li>
<b>@agm/core</b> : ^1.0.0-beta.2</li>
</ul>


Expand Down
4 changes: 2 additions & 2 deletions docs/js/menu-wc.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,13 @@ customElements.define('compodoc-menu', class extends HTMLElement {
<a href="modules/AgmDirectionModule.html" data-type="entity-link">AgmDirectionModule</a>
<li class="chapter inner">
<div class="simple menu-toggler" data-toggle="collapse"
${ isNormalMode ? 'data-target="#directives-links-module-AgmDirectionModule-44a9867577192b4130246d20e3a47e0e"' : 'data-target="#xs-directives-links-module-AgmDirectionModule-44a9867577192b4130246d20e3a47e0e"' }>
${ isNormalMode ? 'data-target="#directives-links-module-AgmDirectionModule-97be527f21ed50e0704378b85ae5d279"' : 'data-target="#xs-directives-links-module-AgmDirectionModule-97be527f21ed50e0704378b85ae5d279"' }>
<span class="icon ion-md-code-working"></span>
<span>Directives</span>
<span class="icon ion-ios-arrow-down"></span>
</div>
<ul class="links collapse"
${ isNormalMode ? 'id="directives-links-module-AgmDirectionModule-44a9867577192b4130246d20e3a47e0e"' : 'id="xs-directives-links-module-AgmDirectionModule-44a9867577192b4130246d20e3a47e0e"' }>
${ isNormalMode ? 'id="directives-links-module-AgmDirectionModule-97be527f21ed50e0704378b85ae5d279"' : 'id="xs-directives-links-module-AgmDirectionModule-97be527f21ed50e0704378b85ae5d279"' }>
<li class="link">
<a href="directives/AgmDirection.html" data-type="entity-link" data-context="sub-entity" data-context-id="modules">AgmDirection</a>
</li>
Expand Down
4 changes: 2 additions & 2 deletions docs/js/search/search_index.js

Large diffs are not rendered by default.

10 changes: 3 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "agm-direction",
"version": "0.7.4",
"version": "0.7.5",
"description": "directive for agm (not official)",
"main": "./bundles/agm-direction.umd.js",
"module": "./fesm5/agm-direction.js",
Expand Down Expand Up @@ -38,15 +38,11 @@
"direction"
],
"license": "MIT",
"dependencies": {
"@agm/core": "^1.0.0-beta.5",
"tslib": "^1.9.0"
},
"peerDependencies": {
"@angular/common": ">= 7.0.0",
"@angular/core": ">= 7.0.0"
"@agm/core": "^1.0.0-beta.2"
},
"devDependencies": {
"@agm/core": "^1.0.0-beta.2",
"@angular/animations": "7.0.0",
"@angular/common": "7.0.0",
"@angular/compiler": "7.0.0",
Expand Down
3 changes: 2 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
# yarn lockfile v1


"@agm/core@^1.0.0-beta.5":
"@agm/core@^1.0.0-beta.2":
version "1.0.0-beta.5"
resolved "https://registry.yarnpkg.com/@agm/core/-/core-1.0.0-beta.5.tgz#6dbceb666b2dbc4a868b97e1340a3faceb5f2113"
integrity sha512-LVENJqtBZEWpX+uJkGI0zgg+Xkm2KkktQm4ojZozArbeNvQkVL6pqVc04Mme6vvOzwJpD1cET5w4byC8Xaq1QQ==

"@angular/animations@7.0.0":
version "7.0.0"
Expand Down

0 comments on commit 00bf567

Please sign in to comment.