AngularJS angular.forEach() Function
The angular.forEach() Function in AngularJS is used to iterate through each item in an array or object. It works similar to the for loop and this loop contains all properties of an object in key-value pairs of an object....
read more
How to setup 404 page in angular routing ?
To set up a 404 page in the angular routing, we have to first create a component to display whenever a 404 error occurred. In the following approach, we will create a simple angular component called PagenotfoundComponent....
read more
Angular 10 formatDate() Method
In this article, we are going to see what is formatDate in Angular 10 and how to use it. formatDate is used to format a date according to locale rules....
read more
How to use $scope.$apply() in AngularJS ?
In this article, we will be discussing the $apply() function & how to use it in angularjs. In AngularJS, $apply() function is used to evaluate expressions outside of the AngularJS context (browser DOM Events, XHR). Moreover, $apply has $digest under its hood, which is ultimately called whenever $apply() is called to update the data bindings. We will take an example to give a better understanding....
read more
AngularJS Forms ngSubmit() Method
In this article, we are going to see what is ngSubmit method in Angular 10 and how to use it....
read more
AngularJS angular.isNumber() Function
The angular.isNumber() function in AngularJS is used to determine the parameter inside isNumber function is a number or not. It returns true if the reference is a number otherwise returns false....
read more
AngularJS angular.isUndefined() Function
The angular.isUndefined() function in AngularJS is used to determine the value inside isUndefined function is undefined or not. It returns true if the reference is undefined otherwise returns false....
read more
AngularJS angular.isArray() Function
The angular.isArray() Function in AngularJS is used to return TRUE if the reference is an array and FALSE if it is not an array....
read more
AngularJS angular.isDate() Function
The angular.isDate() function in AngularJS is used to determine whether the value of the date is valid or not. It returns true if the reference is a date else false....
read more
How to delete an item or object from the array using ng-click ?
The task is to delete the item from the list when the button is clicked. This all should be done by using ng-click. This is done by using the splice() method. The syntax for the method is given below....
read more
How to pass express errors message to Angular view ?
There are mainly two parts of a web application, one is front-end and another is the backend. We will start with the backend first. The express catches all errors that occur while running route handlers and middleware. We have to just send them properly to the frontend for user knowledge....
read more
How to use javascript function in string interpolation in AngularJS ?
String interpolation is basically used to display the dynamic data on an HTML template. It facilitates you to make changes on component.ts file and automatically fetch data from there to the HTML template (component.html file)....
read more