This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| startExternalMap() { | |
| if (this.location.latitude) { | |
| this.platform.ready().then(() => { | |
| Geolocation.getCurrentPosition().then((position) => { | |
| // ios | |
| if (this.platform.is('ios')) { | |
| window.open('maps://?q=' + this.location.name + '&saddr=' + position.coords.latitude + ',' + position.coords.longitude + '&daddr=' + this.location.latitude + ',' + this.location.longitude, '_system'); | |
| }; | |
| // android | |
| if (this.platform.is('android')) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Component } from '@angular/core'; | |
| @Component({ | |
| selector:'sandbox', | |
| template:` | |
| <h1>Hello World</h1> | |
| <form novalidate #f="ngForm" (ngSubmit)="onSubmit(f)"> | |
| <div class="form-group"> | |
| <label>Name</label> | |
| <input |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Component } from '@angular/core'; | |
| @Component({ | |
| selector:'sandbox', | |
| template:` | |
| <h1>Hello World</h1> | |
| <button id="btn" (click)="fireEvent($event)">Click Event</button> | |
| <br> | |
| <button id="btn" (mouseover)="fireEvent($event)">Mouseover Event</button> | |
| <br> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Component } from '@angular/core'; | |
| @Component({ | |
| selector:'sandbox', | |
| template:` | |
| <h1>Hello World</h1> | |
| <div> | |
| <input type="text" (keyup)="fireEvent($event)" placeholder="keyup event"> | |
| </div> | |
| <div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Component } from '@angular/core'; | |
| import { DataService } from '../../services/data.service'; | |
| @Component({ | |
| selector:'sandbox', | |
| template:` | |
| <h1>Hello World</h1> | |
| <form (submit)="onSubmit(isEdit)"> | |
| <div class="form-group"> | |
| <label>Name</label> |
OlderNewer