This is an example of bad angular - using angular expressions in HTML to do what really should be done in methods in a controller.