2017-08-02 91 views
0

我有一個需要檢索角度範圍。以下在Chrome,Safari,IE中運行良好。但在FF中,它引發了錯誤,而且未定義範圍。jquery中的角度範圍

var scope = angular.element('cards-container').scope()

請幫忙!

+0

https://github.com/angular/angular.js/issues/14807 – anu

+0

確保到$ compileProvider.enableDebugInfo = false – anu

回答

0

您需要啓用調試模式,以允許該

$compileProvider.debugInfoEnabled(false)

檢查this