Recent Posts

Java Arrays Lists & Streams Reference

less than 1 minute read

// Initialize Arrays Integer[] integerArray = {1, 2, 3, 4, 5}; System.out.println(Arrays.toString(integerArray)); // Initialize List List<Integer> int...

NgRx Explained

8 minute read

Often times, when our angular applications grows, our code become quite messy to follow. We have multiple components, referencing a myriad number of servic...

How to test HttpClient in Angular

1 minute read

This is a simple method to call http using the HttpClientModule. getBooks(): Observable<Book[]>{ return this.http.get<Book[]>(BooksService.b...

How to use environment variable in Angular

1 minute read

Angular automatically creates 2 files - environment.ts and environment.prod.ts, in the environment folder when the project is first created. Both of them has...

How to do navigation in Angular

1 minute read

When you create a new angular app using ng new <application name>, the first question you get asked is ? Would you like to add Angular routing? (y/N). ...