i have dojo module has ton of code in , wanted able consume functions inside module. module loads fine in angular controller, have no way consume scope modified inside controller in view. how go accomplishing this? here code:
angular.controller('maptestcontroller', ['$rootscope','$scope', function ($rootscope,$scope) { require(['mapping/scripts/mapping'], function (mapping) { $scope.testvar= "how access in view?"; }); $scope.map = { center: { lng: -122.45, lat: 37.75 }, zoom: 13 }; }]); html:
<div ng-app="angularapp"> <div ng-controller="maptestcontroller"> {{testvar}} //this blank ...
i'm not familiar dojo answer fall out of scope.
require(['mapping/scripts/mapping'], function (mapping) { $scope.$apply(function () { $scope.testvar= "how access in view?"; } });
Comments
Post a Comment