Make directive to accept onScan and beforeScan callbacks instead of broadcasting 'dataScanned' event.

This will allow to reuse directive for screens different from 'send'
This commit is contained in:
Kosta Korenkov 2015-07-23 13:21:31 +03:00
commit 1f4f78bec0
3 changed files with 21 additions and 8 deletions

View file

@ -15,7 +15,7 @@
</section>
<section class="right-small" ng-show="showCamera">
<qr-scanner ng-show="index.isComplete"/>
<qr-scanner ng-show="index.isComplete" on-scan="topbar.onQrCodeScanned(data)" before-scan="topbar.openSendScreen()" />
</section>
<section class="middle tab-bar-section">