For some reason I can't get the click event to work the "Angular way" on this button. Could this be related to the button being in a dialog that hasn't been created yet? Any ideas?