using latest angular
basic front end storing data in array in browser