Angular Interview Questions in Hindi
🧠 Angular क्या है?
Angular एक powerful TypeScript-based front-end framework है जिसका उपयोग dynamic और fast Single Page Applications (SPA) बनाने के लिए किया जाता है। इसे Google द्वारा develop और maintain किया जाता है। Angular में modular architecture, component-based structure, code reusability और high performance जैसे advanced features होते हैं, जिससे scalable web applications आसानी से बनाए जा सकते हैं।
Angular एक TypeScript-based front-end framework है जिसका उपयोग fast और dynamic SPA (Single Page Applications) बनाने के लिए किया जाता है।
⚙️ Syntax Example
// Angular Component Example
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
template: `
<h1>Hello Angular!</h1>
<p>यह मेरा पहला Angular Component है।</p>
`,
styles: [`
h1 { color: blue; }
`]
})
export class AppComponent {
title = 'My First Angular App';
}
🧩 Example Output
ऊपर दिए गए कोड से एक simple Angular component बनेगा जो "Hello Angular!" और एक पैराग्राफ दिखाएगा।
💬 Interview Questions
Q1: Angular क्या है?
👉 Angular एक TypeScript आधारित framework है जो SPA बनाने के लिए उपयोग होता है।
Q2: AngularJS और Angular में क्या अंतर है?
👉 AngularJS JavaScript पर आधारित है जबकि Angular TypeScript पर आधारित है और इसमें बेहतर performance व modularity है।
Q3: Component क्या होता है?
👉 Component Angular application का basic building block है जिसमें HTML, CSS और TypeScript logic होता है।
Q4: Directive क्या है?
👉 Directive DOM elements के behavior को बदलने के लिए उपयोग होता है। जैसे *ngIf, *ngFor।
Q5: Data Binding के कितने प्रकार होते हैं?
👉 Angular में 4 प्रकार के data binding होते हैं: Interpolation, Property Binding, Event Binding और Two-way Binding।
Q6: Dependency Injection क्या है?
👉 यह design pattern है जिसमें services को components में inject किया जाता है ताकि reusability और testability बढ़े।
Q7: Angular में Service का उपयोग क्यों किया जाता है?
👉 Service reusable business logic और data को manage करने के लिए उपयोग होती है।
Q8: Angular में Routing क्या है?
👉 Routing का उपयोग अलग-अलग components/pages के बीच navigation करने के लिए होता है।
Q9: Angular CLI क्या है?
👉 Angular CLI एक command-line tool है जो Angular projects को create, build और manage करने में मदद करता है।
Q10: Lifecycle Hooks क्या होते हैं?
👉 Lifecycle Hooks वे methods हैं जो component के lifecycle के अलग-अलग stages पर call होते हैं, जैसे ngOnInit(), ngOnDestroy()।
📌 निष्कर्ष
Angular आधुनिक वेब एप्लिकेशन बनाने के लिए एक शक्तिशाली framework है। इंटरव्यू में अक्सर इसके Components, Directives, Data Binding, Services, Routing और Lifecycle Hooks से जुड़े प्रश्न पूछे जाते हैं।
यह पोस्ट पसंद आई हो तो Job Oriented Study Academy को लाइक, शेयर और सब्सक्राइब करना न भूलें ❤️

0 Comments