Category: AngularJS


AngularJs: How to format numbers in template?

AngularJS provides number filter to format numbers in different ways. You can display numbers in various formats using the number filter in your template. Basic syntax to use number filter in your template is...


AngularJS: How to use ternary operator in template

AngularJS now supports a ternary condition in its expressions. The basic syntax is as below.

Let’s see some examples.

Above expression will check if there is a value set in bioText...


AngularJS: Remove # from URL

AngularJS builds URL with hashtag by default. To remove hashtag (#) from URL, there are 2 steps. 1) Set base for links In your main HTML file, add the <base> tag in <head> section. This...