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:
parent
b673540638
commit
1f4f78bec0
3 changed files with 21 additions and 8 deletions
|
|
@ -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">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue