Angularjs IE7和IE8中角度指令的动态编译问题

Angularjs IE7和IE8中角度指令的动态编译问题,angularjs,angularjs-directive,internet-explorer-8,internet-explorer-7,Angularjs,Angularjs Directive,Internet Explorer 8,Internet Explorer 7,我试图在我的应用程序中动态编译一个指令。我试过的是什么样子 $scope.newPaneString = '<vmf-split-container>' + '<vmf-split-pane-component paneheight="30%" minwidth="30%" maxwidth="70%">' + <!--Some content comes in here--> '</vmf

我试图在我的应用程序中动态编译一个指令。我试过的是什么样子

    $scope.newPaneString = '<vmf-split-container>' +
        '<vmf-split-pane-component paneheight="30%" minwidth="30%" maxwidth="70%">' +
            <!--Some content comes in here-->
        '</vmf-split-pane-component>' +
        '<vmf-split-pane-divider paneheight="10px" clicks="0" close="bottom"></vmf-split-pane-divider>' +
        '<vmf-split-pane-component>' +
            <!--Some content comes in here-->
        '</vmf-split-pane-component>' +
        '</vmf-split-container>';
         $compile($scope.newPaneString)($scope)
问题就在这里。当我尝试使用
$compile
动态编译此指令时,我得到以下错误:

 http://errors.angularjs.org/1.2.27/$compile/ctreq?0=vmfSplitContainer&p1=vmfSplitPaneComponent

这只发生在IE7和IE8上。请帮我解决这个问题。

尝试使用属性表示法代替元素表示法让IE工作。

我认为ie7或更早版本不支持angularjs。即使是IE8也需要做一些技巧。在更高版本中,即使使用angular版本1.2的IE8 alsoI am也不支持它。它将支持IE7和IE8。请参考此文件,如果您没有。我认为尝试使用属性表示法而不是元素表示法对IE工作会有帮助。@MadasuK非常感谢,伙计。为我节省了很多时间。属性填充解决了问题。:)
 http://errors.angularjs.org/1.2.27/$compile/ctreq?0=vmfSplitContainer&p1=vmfSplitPaneComponent