i
Mphasis
Filter interviews by
Number vs parseInt: Number converts a string to a number, parseInt parses a string and returns an integer. Find vs Filter: Find returns the first element that matches a condition, Filter returns all elements that match a condition.
Number vs parseInt: Number('10') returns 10, parseInt('10.5') returns 10
Find vs Filter: [1, 2, 3, 4, 5].find(num => num > 3) returns 4, [1, 2, 3, 4, 5].filter(num => num > 3) returns [4, 5]
Create a reactive form in Angular to save data in API with validation
Create a reactive form using FormBuilder in Angular
Add form controls with proper validation rules using Validators
Handle form submission and send data to API using HttpClient
Implement error handling for API requests
Display success or error messages to the user
Auth-guard is a feature in Angular that controls access to routes based on user authentication status.
Auth-guards are used to protect routes in Angular applications by checking if a user is authenticated before allowing access.
They can be implemented using canActivate interface in Angular.
Auth-guards can redirect unauthenticated users to a login page or display an error message.
They are commonly used in applications wi...
There are multiple ways to communicate in Angular components, including Input, Output, ViewChild, and Services.
Input - parent component can pass data to child component using @Input decorator
Output - child component can emit events to parent component using @Output decorator
ViewChild - parent component can access child component using @ViewChild decorator
Services - components can communicate through shared services
Use JavaScript to find the longest word in a string.
Split the string into an array of words using split() method.
Iterate through the array and compare the length of each word to find the longest one.
Return the longest word found.
I started my career as a web developer, specializing in frontend technologies like Angular. I have worked on various projects and gained valuable experience.
Started career as web developer
Specialized in frontend technologies like Angular
Worked on various projects
Gained valuable experience
I have expertise in developing Angular frontend applications with strong knowledge of TypeScript, HTML, CSS, and Angular frameworks.
Strong knowledge of TypeScript, HTML, and CSS
Experience in developing Angular frontend applications
Familiarity with Angular frameworks like AngularJS, Angular 2+, Angular Material
Understanding of reactive programming and observables in Angular
Knowledge of state management with tools like N
posted on 21 Nov 2024
posted on 13 May 2024
I applied via Approached by Company and was interviewed in Apr 2024. There were 2 interview rounds.
Angular life cycle hooks are methods that allow you to tap into specific points in a component's life cycle.
ngOnChanges: called when an input property changes
ngOnInit: called once the component is initialized
ngOnDestroy: called before the component is destroyed
ngAfterViewInit: called after the component's view has been fully initialized
The digest cycle in Angular is the process where Angular checks all the watchers in the scope for changes and updates the view accordingly.
During the digest cycle, Angular compares the current value of the watchers with the previous value to detect changes.
If a change is detected, Angular updates the view to reflect the changes.
The digest cycle continues until all watchers have been checked and no more changes are dete...
posted on 15 Mar 2024
Promises are objects representing the eventual completion or failure of an asynchronous operation. Types refer to the data types in TypeScript.
Promises are used for handling asynchronous operations in JavaScript.
They can be in one of three states: pending, fulfilled, or rejected.
Types in TypeScript help catch errors early by enforcing data types at compile time.
Examples: Promise.resolve(), Promise.reject(), string, num
posted on 21 Nov 2024
It was aptitude test abount math and reasoning.
Some general algorithms
based on 1 interview
Interview experience
based on 2 reviews
Rating in categories
Software Engineer
6.3k
salaries
| ₹2 L/yr - ₹11.1 L/yr |
Senior Software Engineer
5.6k
salaries
| ₹6 L/yr - ₹23.5 L/yr |
Associate Software Engineer
4.6k
salaries
| ₹2 L/yr - ₹6 L/yr |
Module Lead
2.4k
salaries
| ₹9.5 L/yr - ₹34.3 L/yr |
Transaction Processing Officer
2.3k
salaries
| ₹1.5 L/yr - ₹4.5 L/yr |
Cognizant
Wipro
Accenture
TCS