This post will cover the step needed to take the angular universal app to the production server. This post assumes that you have running angular…
4 CommentsCategory: Javascript
You can use the JavaScript built in object Set to keep unique values of any type. You can make use of Set to remove duplicate…
Leave a CommentIn this post, I will show how to add error handling when using async/await. One of the goals of async/await is to make the asynchronous…
Leave a CommentIn this tutorial, I will show you Nginx installation and configuration steps to serve the Angular application in production. I am gonna use Ubuntu 16.04…
7 CommentsIn this article, you will learn how to use cascading DropDownList using Angular application. In following tutorial you gonna use Angular CLI to create an…
2 CommentsUsing HTTP service directly in all over the application is not scalable, its only work for small applications. Having a central location to manage HTTP…
Leave a CommentThe NgSwitch directive lets you to insert different sets of elements into the document based on a specified value or expression.NgSwitch Directive resides inside CommonModule…
Leave a CommentInside the root app component, Inject the Router and subscribe to route change events and detect the NavigationStart event with the event type instance, its…
2 CommentsHere is the quick JavaScript code snippet to capitalize the first letter of a string. function ucFirst(string) { return string.charAt(0).toUpperCase() + string.slice(1); } How to…
1 CommentIn this post, will take an array of objects and paginate it using JavaScript. Depending on your needs sometimes you may wish to create a…
8 CommentsAngular 2 provide different ways to apply class to the elements based on certain conditions. In this post I would like to show you couple…
Leave a CommentThe exponentiation operator was introduced in ECMAScript 2016, ** is used to denote this operator. It accepts base on its left-hand side and exponent on…
Leave a CommentTo refresh or reload the active or current pages using JavaScript, you can use the location.reload() ,and setTimeout() methods. The reload() method does the same…
1 CommentDestructuring is alluring language feature, I’ve been using the most. Destructuring is provides a convenient way of extracting multiple values from the objects, Arrays, Map…
Leave a CommentIn this post I will show you, how we can create custom async validator to check for email availability, same logic you can apply for…
9 Comments