如何连接 html 个链接并在 div 中显示它们

How to concatanate html links and display them in div

在js文件中我有

 vm.text= response.children.map(function (e) {
                                        var html = '<a ng-click="hello">' +  e.number+ '</a>';
                                        return html;
                                    }).join('  ||  ');

在html我有

 <div>
                  <strong> {{vm.text}}</strong>
            </div>

Above div display <a ng-click="hello">9253</a> || <a ng-click="hello">1025</a>

超链接不仅仅是数字。我猜 {{}} 不会允许 html。我如何让它不显示链接?

试试 <strong [innerHTML]="vm.text"></strong>

编辑:我没有注意到 ng- 前缀,您应该改用 ng-bind-html