Angularised the search bar using proper directives.