I have an angular template with the following notification:
In the controller when the save button is clicked I have:
which works. However, when I try and access the control via the ControllerAs syntax:
I get the error "Cannot read property "show" of undefined".
Can you tell me what I am doing wrong?