I am attempting to showcase specific alerts using AngularJS. You can reference the alert section at http://angular-ui.github.io/bootstrap/. My goal is to adjust the example so that only alerts with a "show" attribute set to true are displayed:
$scope.alerts = [
{ type: 'error', msg: 'Oh snap! Change a few things up and try submitting again.', show: true },
{ type: 'success', msg: 'Well done! You successfully read this important alert message.', show: false }
];
I have included ng-show="alert.show"
in the alert tag, but it appears that no alert is being shown.
You can access the code here: http://plnkr.co/edit/Qbv4A9u1SnQeJy9o81lK?p=preview.
What mistake have I made? Thank you in advance!