Angularjs-toaster始终在右上方显示Toast通知
发布时间:2020-12-17 09:03:17 所属栏目:安全 来源:网络整理
导读:我有这个示例html文件.我在这里使用角度吐司通知.我面临的问题是Toast消息总是出现在右上角位置. script.js文件包含 angular.module('main',['ngAnimate','toaster']).controller('myController',function($scope,toaster,$window) { $scope.pop = function(
我有这个示例html文件.我在这里使用角度吐司通知.我面临的问题是Toast消息总是出现在右上角位置.
script.js文件包含 angular.module('main',['ngAnimate','toaster']).controller('myController',function($scope,toaster,$window) { $scope.pop = function(){ toaster.pop('success',"title",'message'); }; $scope.clear = function(){ toaster.clear(); }; }); 请找到plunker链接http://plnkr.co/edit/pzuW5OVkoxLF7zl0mGaC?p=preview 提前致谢
在你想要的选项中:position-class,而不是positionClass.
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |