If/Else Conditional Statement in AngularJS 4

If/Else Conditional Statement in AngularJS 4: conditional statements are very important in any programming language. Today we are going to see how to use these below conditional statements in angularjs 4. we used ng-template to display the tags/values based on satisfying conditions. 1. If/else 2. If/then 3. If/then/else Official documentation links for your reference: NgIf-directive Official Documentation: NgIf Directive Documentation

127 total views, 1 views today

» Read more

Remove all special characters except percentage (real time use case)?

How to remove all special characters except percentage (real time use case)? If you are running a coupon website, then you will have this issue sometime while parsing/scrapping coupons from merchants.   For example, you will have these three types of strings: 1. Get 10% Cashback 2. Get Rs. 10/- Cashback 3. Get 10/- Cashback 4. Get (Indian rupee symbol)

89 total views, no views today

» Read more

How to add Bootstrap 4 to Angular-CLI project ?

How to add Bootstrap 4 to Angular-CLI project ? Basically bootstrap can be configured in angularjs 2 or angular-cli through ng-bootstrap or directly using bootstrap. Here we are going to see how to add bootstrap 4 to angular-cli project. Prerequest: Node js should be installed in your machine.   Read how to install Node JS here, How to install Node JS

258 total views, no views today

» Read more
1 2 3 4 5 53