[英]Angularjs-toaster always displays toast notification on top-right
I have this sample html file. 我有这个示例html文件。 Here I am using angular-toast notification.
我在这里使用角度吐司通知。 Issue I am facing here is toast messages always appear on the top-right position.
我面临的问题是Toast消息总是出现在右上角位置。
script.js file contains 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();
};
});
Please find the plunker link http://plnkr.co/edit/pzuW5OVkoxLF7zl0mGaC?p=preview 请找到plunker链接http://plnkr.co/edit/pzuW5OVkoxLF7zl0mGaC?p=preview
Thanks in advance 提前致谢
在你想要的选项中: position-class
,而不是positionClass
。
为了完整性,我添加了以下代码:
<toaster-container toaster-options="{'time-out': 3000, 'position-class': 'toast-bottom-left', 'close-button':true, 'animation-class': 'toast-bottom-left'}"></toaster-container>
将其修改为:
'position-class': 'toast-bottom-right','close-button':true
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.