Posts

Showing posts from October, 2023

9. Angular and MongoDBs

Angular and MongoDBs 1.       Angular Application Setup Observe   the   link   http://localhost:4200/welcome   on   which   the   mCart   application   is   running.     2.       Components   and   Modules Create   a   new   component   called   hello   and   render   Hello   Angular   on   the   Page   3.       Elements   of   Template Add   an   event   to   the   hello   component   template   and   when   it   is   clicked,   it   should   change the   courseName.   4.       ngFor Create a courses array and rendering it in the template using ngFor directive in a list format   5.       ngClass Ap...

MongoDB QnAs for Vivavoce

  What is MongoDB, and why is it called a NoSQL database? MongoDB is a document-oriented NoSQL database that stores data in JSON-like documents. It is called NoSQL because it does not use traditional SQL (Structured Query Language) for querying data. What is a document in MongoDB? A document in MongoDB is a JSON-like object that contains key-value pairs and is the basic unit of data storage. Explain the structure of a MongoDB document. A MongoDB document consists of fields, which are key-value pairs, and it can have nested documents and arrays. What is a collection in MongoDB? A collection in MongoDB is a group of MongoDB documents. It is similar to a table in a relational database. How do you insert a document into a MongoDB collection? You can insert a document into a collection using the insertOne() or insertMany() method. Explain the concept of ObjectId in MongoDB. ObjectId is a 12-byte identifier that is unique within a collection and is automatically generated for each docu...

Angular QnAs for Viva voce

  What is Angular? Angular is a popular open-source JavaScript framework for building web applications. How is Angular different from AngularJS? AngularJS is the first version of the framework, while Angular refers to versions 2 and above. Angular uses TypeScript, has improved performance, and a more modular architecture. What are the key features of Angular? Some key features of Angular include two-way data binding, dependency injection, components, templates, and a modular architecture. Explain the architecture of an Angular application. Angular applications follow a component-based architecture, where components are the building blocks. These components are organized into modules, and the application is bootstrapped from the main module. What are components in Angular? Components are the basic building blocks of an Angular application. They encapsulate the UI and logic and can be reused. What is a template in Angular? A template in Angular is an HTML structure that defines how t...