控制器和指令双向绑定了值。{{data}}页面可以显示出来。但是提交的时候获取不到解决办法
<div ng-show="isBindDevices">
<bind-devices tenant-id="{{tenantId}}" user-info="{{userInfo}}" service-id="{{newVpnData.serviceName}}" bind-device-data="$parent.bindDeviceData" show-hub="true" read-idle="true" carrier-type="{{newVpnData.carrierType}}"></bind-devices>
</div>
return { restrict: 'E', replace: true, templateUrl: 'file:///android_asset/www/templates/directives/bindDevices.tpl.html', scope: { tenantId: "@", serviceId: "@", showHub:"@", bindDeviceData:"=bindDeviceData", readIdle:"@", carrierType:"@", userInfo:"@" },