Tagged: AngularJS

0

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...

0

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...