Angular Interview Question Set 12

Categories: Angular

Write an example of a simple HTML document with some header information and page content.

HTML documents are all different, but they follow a basic structure of the head and body. Here you‘re checking the candidate has a good grasp of HTML document structure and basic HTML tags such as DOCTYPE, html, head, title, meta, body, h1, p, etc.

For example:


     <!DOCTYPE html>

     <html>

       <head>

         <title>Page Title</title>

         <meta charset="UTF-8">



Briefly explain the CSS box model. Write some code snippets to describe show what you mean.

CSS along with HTML and JavaScript is one of the building blocks of the Internet. CSS describes how webpages look. Every front-end developer should have good CSS knowledge. Good candidates will be able to describe CSS concepts concisely.

The CSS box model refers to the layout and design of HTML elements. It‘s a box shape that wraps around each HTML element. A box is made up of its content, padding, border and margin.


  1. Content of the box
  2. Padding
  3. Border
  4. Margin


What are Single Page Applications? How do they work in Angular?

 Single Page Applications (SPAs) are web applications that use only one HTML page. As the user interacts with the page, new content is dynamically updated on that master page. Navigation between pages happens without refreshing the whole page. Angular uses AJAX and to dynamically update HTML elements. Angular Routing can be used to make SPAs. The result is an application that feels more like a desktop app rather than a webpage.



What is [(ngModel)] used for?

Two-way data binding. If they say one-way binding they are incorrect.

You should expect an Angular developer to know about the Angular digest cycle. This process helps with Angular data binding.

An Angular developer should know about Angular event binding too. This helps an app to respond to user actions like keystrokes and clicks. Angular developers need thorough knowledge of the event binding syntax.



What are the basic parts of an Angular application?

Modules, Component, Property Binding, Template, Structural Directives, Dependency Injection, Services, Routing.

Note: Angular developers should know about structural directives in Angular well. Structural directives are one of the 3 types of directives in Angular. The other 2 types are as follows:

Components: These are directives with templates.

Attribute directives: These are used for changing the appearance or behavior of an element or component.


Describe how you would approach solving (some problem) on a high level?

 In this question, the problem should be directly related to the work the candidate will actually be doing. You aren‘t looking for a perfect answer or even necessarily a correct answer. Instead, listen to how they approach solving a problem, their ability to break a problem down into parts, and if they can anticipate problems.



What are some advantages of using Angular framework for building web applications?

Advantages of using the Angular framework include:

  1. Angular does lots of things for you under the hood. It saves time for developers by doing a lot of the work for them like writing tedious DOM manipulation tasks
  2. TypeScript and the Angular framework allow you to catch errors much earlier
  3. In many cases has faster performance than traditional web development techniques
  4. Can give web apps the feel of a desktop application



What function is called when an object is created in TypeScript? What is it‘s basic syntax in TypeScript code?

The constructor function is called. It‘s syntax is:  Constructor(){}

Note: Angular developers should have sound knowledge of the scope object in Angular, which is a built-in object.


In Angular, how can you interact between Parent and Child components?

 When passing data from Parent to Child component, you can use the @Input decorator in the Child component. When passing data from Child to Parent component, you can use the @Output decorator in the Child component.

Top Blogs
Angular and Node JS difference Published at:- The top 5 new features of Angular did you know Published at:- Introduction to AngularJS Published at:- Single-Page Applications and Bootstrapping the Application in Angular JS Published at:- Dependency Injection and AngularJS Routes Published at:- AngularJS Templates, Views, Models, Controllers Published at:- Integrating AngularJS with Other Frameworks Published at:- Testing AngularJS Applications in the IDE Published at:- End-to-End Testing with Protractor Published at:- AngularJS Views and Bootstrap Published at:- Adding a New Blog Controller Published at:- Adding a New Blog Template In Angular JS Published at:- Ways to Communicate with REST Services Published at:- Services and Business Logic and Handling User Authentication in Angular JS Published at:- Using Basic Authentication, Creating AngularJS Services, Holding User Credentials in Angular JS Published at:- AngularJS Security : why we are covering security in a book on AngularJS Published at:- MEAN Cloud and Mobile, Local Deployment and Installing Node.js, npm, and MongoDB in Angular Published at:- Angular 4 Questions - Angular 4 Quiz (MCQ) Published at:- AngularJS MCQ Quiz Questions with Answer Part 2 Published at:- AngularJS MCQ Quiz Questions with Answer Published at:- AngularJS MCQ Quiz Questions with Answer Published at:- Angular Interview Question Set 1 Published at:- Angular Interview Question Set 2 Published at:- Angular Interview Question Set 3 Published at:- Angular Interview Question Set 4 Published at:- Angular Interview Question Set 5 Published at:- Angular Interview Question Set 7 Published at:- Angular Interview Question Set 8 Published at:- Angular Interview Question Set 9 Published at:- Angular Interview Question Set 10 Published at:- Angular Interview Question Set 11 Published at:- Angular Interview Question Set 11 Published at:- Angular Interview Question Set 12 Published at:- Angular Interview Question Set 13 Published at:- Angular Interview Question Set 14 Published at:- Angular Interview Question Set 15 Published at:-
R4Rin Team
The content on R4Rin.com website is created by expert teams.