notifications - AngularJS toaster close button not visible -


i using angularjs toaster in application getting dynamic notifications.present getting notifications close button not visible. code

 var message = "welcome..";         $scope.poptoaster = function(){             toaster.pop('success', "alert", message); } 

html :

 <toaster-container toaster-options="{'close-button': true}"></toaster-container> 

please suggest if doing wrong?

as mentioned using version 0.3 of angularjs-toaster suggest use latest version or @ least 0.4.7. close button added above 0.4.6 can see here in directive template. advantage can use functions success or error on toaster service itself. here small example:

<div ng-app="myapp">     <toaster-container toaster-options="{'close-button':true}"></toaster-container>     <div class="container" ng-controller="myctrl">         <button type="button" ng-click="displaytoaster()">toaster</button>     </div> </div> 

and here script file:

var myapp = angular.module("myapp", ["toaster"]);  myapp.controller("myctrl", function ($scope, $http, toaster) {     $scope.displaytoaster = function () {         toaster.success("welcome...");     }; }); 

so please use latest version 0.4.13 official git repository.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -