我还没有能够使用稀疏的ng-Toast文档找到这些信息。
我有一个对象列表,我将$ scope.notifications设置为。我希望这些物品出现在“吐司”中。我设置了' $ scope.notifications = x;'然后我的ng-Toast看起来像这样:
ngToast.create({
content: $scope.notifications,
compileContent: true,
compileToScope: $scope
});
但是,我只会在出现的吐司中看到' [object] [object]。 有什么想法吗?
答案 0 :(得分:1)
答案是'是的,你可以'。
示例:
$scope.notifications = x;
ngToast.create({
content: '{{notice.content}}',
compileContent: true,
compileToScope: $scope
});
纯