i
TCS
Filter interviews by
Directives are markers on a DOM element that tell AngularJS to attach a specified behavior to that DOM element.
Directives are used to create reusable components.
They can be used to manipulate the DOM.
They can be used to add behavior to an existing DOM element.
They can be used to create custom attributes.
Examples include ng-repeat, ng-show, and ng-hide.
Decorators are functions that modify classes, methods, or properties at design time.
Decorators are used in Angular to add metadata to classes, methods, and properties.
They are denoted by the @ symbol and placed immediately before the item being decorated.
Examples include @Component, @Injectable, and @Input.
Decorators can be used to provide additional functionality or configuration to Angular components.
I applied via Referral and was interviewed in Nov 2024. There was 1 interview round.
Lazy loading is a technique used to load only the necessary resources for a specific part of a web application when it is needed.
Lazy loading can be achieved in Angular by using the loadChildren property in the route configuration.
This property allows you to specify a separate module that will be loaded only when the route is activated.
Lazy loading helps improve the initial loading time of the application by loading mo
Using a shared service or event emitter to facilitate communication between non-relatable components.
Create a shared service with methods to send and receive data between components
Use event emitters to emit events and pass data between components
Utilize RxJS subjects to create an observable data stream for communication
What people are saying about TCS
Dependency injection in Angular allows for providing dependencies to a component or service from an external source.
Dependencies are provided at the module level using providers array in @NgModule decorator.
Dependencies can also be injected at the component level using constructor parameters.
Angular's injector resolves dependencies by looking up the provider token in the injector hierarchy.
Dependency injection helps in...
ng-container is a structural directive in Angular used for grouping elements without adding an extra element to the DOM.
Used to group elements together without adding an extra element to the DOM
Does not render any extra HTML element
Helps in organizing code and improving readability
Useful when applying structural directives like *ngIf or *ngFor
Partial reloading in Angular can be achieved by using the Angular Router to reload only specific parts of the page without refreshing the entire page.
Use Angular Router to navigate to the same component with different parameters to trigger a partial reload
Use router events like NavigationStart to detect when a route change is happening and perform partial reloading accordingly
Use Angular's ChangeDetectionStrategy.OnPus...
TCS interview questions for designations
I applied via Naukri.com and was interviewed in Jul 2024. There was 1 interview round.
Angular life cycle refers to the series of events that occur from the creation of a component to its destruction.
Angular components go through various stages like creation, rendering, updating, and destruction.
Some key life cycle hooks include ngOnInit, ngOnChanges, ngDoCheck, ngOnDestroy, etc.
Developers can use these hooks to perform tasks like initializing data, reacting to changes, and cleaning up resources.
RxJS is a library for reactive programming using Observables, allowing for easier handling of asynchronous data streams.
RxJS stands for Reactive Extensions for JavaScript
It provides a way to work with asynchronous data streams
Operators like map, filter, and mergeMap can be used to manipulate and combine streams
Subscriptions are used to listen for values emitted by Observables
Get interview-ready with Top TCS Interview Questions
I applied via Referral and was interviewed in Dec 2022. There were 2 interview rounds.
I applied via Naukri.com and was interviewed in Oct 2022. There were 2 interview rounds.
Angular is a JavaScript framework for building web applications. SPA came in picture for better user experience.
Angular is a client-side framework developed by Google.
It allows developers to build dynamic, single-page web applications.
SPA (Single Page Application) came in picture to provide a better user experience by reducing page reloads and improving performance.
SPA loads all the necessary resources (HTML, CSS, JS) ...
I applied via LinkedIn and was interviewed in Oct 2022. There were 2 interview rounds.
Angular life cycle hooks are methods that get called at specific stages of a component's life cycle.
ngOnInit() - called after the component is initialized
ngOnChanges() - called when the component's input properties change
ngDoCheck() - called during every change detection cycle
ngAfterViewInit() - called after the component's view has been initialized
ngOnDestroy() - called just before the component is destroyed
An arrow function is a concise way to write a function in JavaScript.
Uses the '=>' syntax
Does not have its own 'this' keyword
Cannot be used as a constructor
Can be used as a callback function
Yes, a variable can be assigned to a function.
Functions are first-class citizens in JavaScript and can be assigned to variables.
The variable will then reference the function and can be called as if it were the function itself.
Example: const myFunction = function() { console.log('Hello World!'); };
Example: const myVar = myFunction; myVar(); // logs 'Hello World!'
based on 12 interviews
2 Interview rounds
based on 11 reviews
Rating in categories
System Engineer
1.1L
salaries
| ₹1 L/yr - ₹9 L/yr |
IT Analyst
67.2k
salaries
| ₹5.1 L/yr - ₹16 L/yr |
AST Consultant
51.3k
salaries
| ₹8 L/yr - ₹25 L/yr |
Assistant System Engineer
29.8k
salaries
| ₹2.2 L/yr - ₹7 L/yr |
Associate Consultant
29k
salaries
| ₹8.9 L/yr - ₹32 L/yr |
Amazon
Wipro
Infosys
Accenture