C# AngularJS-ng在Razor的Bootstrap popover中展示

C# AngularJS-ng在Razor的Bootstrap popover中展示,c#,angularjs,asp.net-mvc,twitter-bootstrap,razor,C#,Angularjs,Asp.net Mvc,Twitter Bootstrap,Razor,我有一个按钮列表,表示数据库中的文件夹层次结构。单击时,我希望引导弹出窗口显示图标按钮,用于添加新文件夹、删除文件夹、更改层次结构等。但是,AngularJS在弹出窗口中不起作用,导致ng click和ng show不再起作用。这里有一个按钮: <button type="button" id="0" ng-click="selectFolder($event)" class="btn btn-default" data-toggle="popover" data-placement="t

我有一个按钮列表,表示数据库中的文件夹层次结构。单击时,我希望引导弹出窗口显示图标按钮,用于添加新文件夹、删除文件夹、更改层次结构等。但是,AngularJS在弹出窗口中不起作用,导致ng click和ng show不再起作用。这里有一个按钮:

<button type="button" id="0" ng-click="selectFolder($event)" class="btn btn-default" data-toggle="popover" data-placement="top" title="Bewerk folder" data-content="@popoverContent">@ViewBag.Title</button>

var popoverContent = "";
popoverContent += "<button type='button' id='newHierarchy' class='btn btn-success' ng-click='addHierarchy = !addHierarchy'>";
popoverContent += new Icon("plus").Html;
popoverContent += "</button>";
popoverContent += "<input type='text' id='newHierarchyName' class='form-control' name='newHierarchyName' ng-show='addHierarchy' />";
@ViewBag.Title
var popcovercontent=“”;
popoverContent+=“”;
popoverContent+=新图标(“plus”).Html;
popoverContent+=“”;
popoverContent+=“”;

我发现了一些类似的问题,它们的答案都涉及指令。然而,我不明白在我的情况下应该如何执行指令。

我想说一些你在别处已经读过的话。一些可以帮助您的链接:也可以查看popover@@Chinmay感谢您直接指出正确的方向,我现在使用的是Angular UI