Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
@@ -1 +1,7 @@
|
|||||||
<p>detail works!</p>
|
<iframe
|
||||||
|
width="100%"
|
||||||
|
height="450"
|
||||||
|
frameborder="0" style="border:0"
|
||||||
|
src="https://www.google.com/maps/embed/v1/directions?key=API_KEY&origin=PARTENZA&destination=DESTINAZIONE&avoid=tolls|highways" allowfullscreen>
|
||||||
|
</iframe>
|
||||||
|
|
||||||
|
|||||||
7
src/app/detail/detail.component.ts
Normal file → Executable file
7
src/app/detail/detail.component.ts
Normal file → Executable file
@@ -1,10 +1,13 @@
|
|||||||
import { Component } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-detail',
|
selector: 'app-detail',
|
||||||
templateUrl: './detail.component.html',
|
templateUrl: './detail.component.html',
|
||||||
styleUrls: ['./detail.component.css']
|
styleUrls: ['./detail.component.css']
|
||||||
})
|
})
|
||||||
export class DetailComponent {
|
export class DetailComponent implements OnInit{
|
||||||
|
|
||||||
|
ngOnInit(): void {
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
<div class="bg-image">
|
<div class="bg-image">
|
||||||
<input type="text" placeholder="Type here" class="input input-bordered input-primary w-full max-w-xs" />
|
<input type="text" placeholder="Type here" class="input input-bordered input-primary w-full max-w-xs" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -1,10 +1,18 @@
|
|||||||
import { Component } from '@angular/core';
|
import {Component, OnInit} from '@angular/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-home',
|
selector: 'app-home',
|
||||||
templateUrl: './home.component.html',
|
templateUrl: './home.component.html',
|
||||||
styleUrls: ['./home.component.css']
|
styleUrls: ['./home.component.css']
|
||||||
})
|
})
|
||||||
export class HomeComponent {
|
export class HomeComponent implements OnInit {
|
||||||
|
latitude: number | undefined;
|
||||||
|
longitude: number | undefined;
|
||||||
|
ngOnInit(): void {
|
||||||
|
navigator.geolocation.getCurrentPosition(position => {
|
||||||
|
this.latitude = position.coords.latitude;
|
||||||
|
this.longitude = position.coords.longitude;
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,10 +1,11 @@
|
|||||||
import { Component } from '@angular/core';
|
import {Component, OnInit} from '@angular/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-list',
|
selector: 'app-list',
|
||||||
templateUrl: './list.component.html',
|
templateUrl: './list.component.html',
|
||||||
styleUrls: ['./list.component.css']
|
styleUrls: ['./list.component.css']
|
||||||
})
|
})
|
||||||
export class ListComponent {
|
export class ListComponent implements OnInit {
|
||||||
|
ngOnInit(): void {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user