[轉]observables-in-ionic2

https://www.joshmorony.com/building-mobile-apps-with-ionic-2/observables-in-ionic2.html this.http.get(url).subscribe( (data) => { console.log(data); }, (err) => { console.log(err); }, () => { console.log(“completed”); } ); In the code above the first event handler handles the onNext response, which basically means “when we detect the next bit of data emitted from the stream, do this”. The second handler handles the onError response, which as you might have guessed will be triggered when an error occurs. The final handler handles the onCompleted event, which will trigger once the Observable has returned all of its data. ...

2016-12-17 · 1 min · 90 words · Me

ranche + kubernetes

https://read01.com/PL50mL.html

2016-12-17 · 1 min · word · Me

GALERA CLUSTER

GALERA CLUSTER FOR RANCHER http://www.dockerinfo.net/1771.html https://octoperf.com/blog/2016/11/17/rancher-galera-cluster/ Running a Galera Cluster in Kubernetes https://www.percona.com/live/data-performance-conference-2016/sessions/running-galera-cluster-kubernetes http://severalnines.com/blog/installing-kubernetes-cluster-minions-centos7-manage-pods-services Architecture of deployment on Azure http://withblue.ink/2016/03/09/galera-cluster-mariadb-coreos-and-docker-part-1.html

2016-12-17 · 1 min · 20 words · Me

ionic2 angularfire example better than google example

https://github.com/rodrigoreal/ionic2-angularfire-login ========== https://github.com/angular/angularfire2/issues/560 https://blog.khophi.co/angularfire2-authentication/ https://github.com/angular/angularfire2/issues/568 https://github.com/angular/angularfire2/issues/566

2016-12-16 · 1 min · 6 words · Me

AngularFire ionic2 auth

Very Important !! use subscribe constructor(public af: AngularFire) { af.auth.subscribe((authstate) => { console.log(authstate); authstate == null ? logout() : login(authstate.auth.displayName); }); } And Think change to Callback mode …………. ========== First : everyone use af.auth.getauth() , then check, have value is login, null is not login. But it’s mistack. Reload page, Change page AngularFire miss…… af.auth be free. Only login page can get af.auth Second: af.auth.subscribe ( ……. ) When auth check finish, run subscribe ( ….. ) This is real get auth. But Think login different First way…….. ...

2016-12-15 · 1 min · 89 words · Me