Angular Interview Question
Angular Interview Question
1) What is angular.
• Ans= Angular is a typescript-based front-end
web application framework.
• Its targets both the browser and server.
• This application maintains by google.
• The primary function is to design single page
application.
• It allows developers to create large,
maintainable applications.
2) What are single page application.
• Ans= A single-page application is an app that
doesn’t need to reload the page during its use
and works within a browser. Think of the apps
you use daily: Facebook, Google Maps, Gmail,
Twitter, Google Drive, or even GitHub. All
these are examples of a SPA.
3) What are template in angular.
• In angular template is a part od HTML .use
special syntax within templates to create
many of angular features.
• There are two ways to create a template in
angular component.
• Inline template
➢ The component decorators template
config is used to specify an inline html
template for a component.
• Linked template
➢ A component may include an html
template in separate html file.
• Template URL option used to indicate the path
of html template file,
4) What are directives in angular.
• Directive is a class in angular that is
declared with a @Directive decorator.
• Every directive has its own behaviour and
can be imported into various components
of an application.
5) Types of directives.
• There are three types of directives.
• Component Directives: Component directives are used
in main class. They contain the detail of how the
component should be processed, instantiated and used
at runtime.
6) What is component .
7) What is module
➢ Interpolation.
➢ Property binding.
➢ Event Binding
10)
11)What is hooks