<div ng-app="module1" ng-controller="ctrl" id="divctrl">
var scope = angular.element(document.getElementById('divctrl')).scope();
scope.$apply(function () {
scope.speakers = ['11','22'];
});
範例: nextTick(() => document.querySelector('input').showPicker()); ※僅支援現代瀏覽器
沒有留言:
張貼留言