EExcel 丞燕快速查詢2

EExcel 丞燕快速查詢2
EExcel 丞燕快速查詢2 https://sandk.ffbizs.com/

ionic2 google map

Must Remeber  css show MAP

https://forum.ionicframework.com/t/ionic-2-typescript-google-maps/53006/26
https://github.com/vijtad/Ionic-2-using-sebm-google-map
https://github.com/SebastianM/angular2-google-maps



http://www.joshmorony.com/ionic-2-how-to-use-google-maps-geolocation-video-tutorial/

http://vpt-deeplearner.tech/2016/11/24/ionic-2-an-example-of-googlemap-using-sebm-angularjs-directory/

https://forum.ionicframework.com/t/ts2304-cannot-find-name-google/58725/26

Data Binding Directive

http://www.sqeeex.com/201605/27.html

  • {{value}}  和   [property]='value'
变量绑定在Component中,只要在Component中控制变量值改变,dom中就会更新,它是单向的。

  • (event)
是事件绑定,是单向的,在dom中触发,从而告知Component。

  • [(ng-model)]或者[(ngModel)]
实现双向绑定, angular1中,我们要实现双向绑定是用ng-model="xx",angular2中从用法上来说确实只是多加了两个括号。



ionic2 example

https://github.com/driftyco/ionic-conference-app/tree/typescript

firebase database security rule

best easy know

1、auth != null    -- only auth pass user ( login success user)

2、$uid === auth.uid   -- usually only data owner can read or modify
$userId === auth.uid

==========
1、only admins group can wirte data

a. Database data
add admins -> add uid:true   (uid -> user in admins group)

b. Database rule
add
{
  "rules": {
 
    "admins":{
      ".read"  : "auth != null && root.child('admins').hasChild(auth.uid)",
      ".write" : "auth != null && root.child('admins').hasChild(auth.uid)"
    }
 
  }
}

now uid in admis, can modify admins

If items only admis can add or modify, everyone can read.

{
  "rules": {
 
    "items":{
      ".read"  : "auth != null ",
      ".write" : "auth != null && root.child('admins').hasChild(auth.uid)"
    }
 
  }
}


2、maybe your want user in admins group and some special oooooxxxx

{
  "rules": {
 
    "items":{
      ".read"  : "auth != null ",
      ".write" : "auth != null && root.child('admins').hasChild(auth.uid) && root.child('admins').child(auth.uid).val()==="oooooxxxxxx" "
    }
 
  }
}





http://stackoverflow.com/documentation/firebase/3352/database-rules#t=201701110341085943147

https://gist.github.com/sararob/331760829a9dcb4be3e7   see HerRomero answer

http://stackoverflow.com/questions/21815229/is-there-a-way-to-restrict-registrations-in-firebase/21834842#21834842