alexcrack / angular-ui-notification

Angular.js service providing simple notifications using Bootstrap 3 styles with css transitions for animating
MIT License
536 stars 169 forks source link

how to pass custom parameters in customTemplate #105

Closed atefcharef closed 7 years ago

atefcharef commented 7 years ago

Notification.primary({ message: "success2", msg2: "Hello", templateUrl: "custom_template.html", scope: $scope}); in custom_template.html {{message}} work but, {{msg2}} show nothing! so how to pass customs parameters to template?

thnx

atefcharef commented 7 years ago

$scope.customTemplateScope = function() { $scope.type="msg2"; Notification.primary({message: "success2", templateUrl: "custom_template.html", scope: $scope}); };

in custom_template.html {{msg2}}