These are chat archives for angular/angular-2-ionic-2

1st
Dec 2016
Joe
@foxjazz
Dec 01 2016 00:23
hey, whats the cli command to start a new project here?
Kyle Roach
@iRoachie
Dec 01 2016 00:24
ionic start
ionic help shows all your available commands
Joe
@foxjazz
Dec 01 2016 00:27
yes I have the stuff installed and used ionic start xxx tabs and I don't think it's angular2... do I need --v2
 <ion-option-button class="button-assertive" ng-click="remove(chat)">
          Delete
        </ion-option-button>
that's not angular2
found it
Joe
@foxjazz
Dec 01 2016 04:35
anyone use pipes with this
any one knows?
Boccexm06
@Boccexm06
Dec 01 2016 09:49
Hi, I'm trying to use Geolocation in my Ionic-app to get the users location.
Geolocation is working while using "ionic serve"-command, but not in emulator or real device.
// get Function
  public allUserLocationMarkers = [];

  getMarkers() {
    this.markerService.getMarkersWithLocation().subscribe(
      markers => {
        this.allUserLocationMarkers = this.filtered = markers.features;
        console.log(markers.features);
      }
    )
  }
// Provider
  getMarkersWithLocation() {

    let Obs = Observable.create(observer => {

      Geolocation.getCurrentPosition().then((resp => {
        let userLat = resp.coords.latitude;
        let userLng = resp.coords.longitude;

        let url = this.baseUrl + "&BBOX=";
        url += userLng + "," + userLat;

        this.http.get(url)
          .subscribe(
            data => {
              observer.next(data.json());
          },
          err => observer.error(err),
          () => observer.complete(console.log(url))
          )
      }))
    })

    return Obs;
  }
From the Android Monitor, I can see that the action starts, but nothing happens after that.
12-01 11:38:53.721 15043-15090/com.ionicframework.**** D/GeolocationPlugin: We are entering execute
Aamir Shah
@aamir1995
Dec 01 2016 14:02
how to Load third party fonts ?