在angularjs的controller之外调用scope里的方法

angular.element(document.getElementById('yourControllerElementID')).scope().yourmethod();

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注