Describe the AngularJS boot process.

When a page is loaded into the browser, several things happen: HTML document file gets loaded, and evaluated by the browser. AngularJS JavaScript file gets loaded, and the angular global object is created. Next, JavaScript file which is responsible for registering the controller functions is executed. AngularJS scans through the HTML to find AngularJS apps … Read more

How will you explain deep linking in AngularJS?

Deep linking is the method which allows us to encode the state of the application in the URL in such a way that it can be bookmarked. Then the application can further be restored from the URL to the same state. In AngularJS, deep linking refers to the ability to create URLs that represent the … Read more

What do you know about internationalization? How will you implement internationalization in AngularJS?

Internationalization is the method for showing locale-specific information on a website. Consider a website displaying content in the English language in the United States and Danish in France. AngularJS has inbuilt internationalization support for three types of filters: Currency Date Numbers We need to incorporate the corresponding JS according to the locale of the country. … Read more

What do you understand by strict conceptual escaping?

AngularJS treats all the values as untrusted/ unsecured in HTML or sensitive URL bindings. AngularJS automatically runs security checks while binding untrusted values. It throws an error if it cannot guarantee the security of the result. This type of behavior depends on contexts: HTML can be sanitized, but template URLs cannot. To illustrate this, consider … Read more

Can we set an Angular variable from PHP session variable without sending an HTTP request?

Yes, we can perform it by injecting PHP in the required place. i.e., $scope.name=”; It will work only if we use PHP to render the HTML and the above JavaScript in tag inside the PHP file. AngularJS and PHP are two distinct technologies that operate on different parts of a web application. AngularJS is a … Read more