我无法使用sparse ng-Toast文档找到此信息。
我有一个设置了$scope.notifications的对象列表。我希望这些对象出现在“吐司”中。我设置了'$scope.notifications = x;‘,然后我的ng-Toast如下所示:
ngToast.create({
content: $scope.notifications,
compileContent: true,
compileToScope: $scope
});然而,我只在出现的吐司中看到了对象。有什么想法吗?
发布于 2017-03-21 02:10:09
答案是‘是的,你可以’。
示例:
$scope.notifications = x;
ngToast.create({
content: '{{notice.content}}',
compileContent: true,
compileToScope: $scope
});干净利落。
https://stackoverflow.com/questions/42910840
复制相似问题