Posts

Showing posts from October, 2025

MongoDB 11.B, 12.B : insert,find,update, and delete commands ; count, limit, sort

use AIDS_B  command creates AIDS_B database. In AIDS_B database to create collection names "register"  db.register.insertOne({Name:'abc',RegdNo:10001,Year:4,Semester:1,branch:'AIDS'})   it is implicit way MongoDB Experiments: 11.B, 12.B test> use AIDS_B switched to db AIDS_B AIDS_B> db.register.insertOne({Name:'abc',RegdNo:10001,Year:4,Semester:1,branch:'AIDS'}) {   acknowledged: true,   insertedId: ObjectId('690588f3b25c5cb31d63b112') } AIDS_B> db.register.insertOne({Name:'def',RegdNo:10002,Year:4,Semester:1,branch:'AIDS'}) {   acknowledged: true,   insertedId: ObjectId('6905891eb25c5cb31d63b113') } AIDS_B> db.register.insertOne({Name:'ghi',RegdNo:10003,Year:4,Semester:1,branch:'AIDS'}) {   acknowledged: true,   insertedId: ObjectId('69058941b25c5cb31d63b114') } AIDS_B> db.register.insertOne({Name:'jkl',RegdNo:10004,Year:4,Semester:1,branch:'IT'}) {   acknow...
DEMONSTRATION  Module Name: Introduction to the CRUD Operations Write MongoDB queries to perform CRUD operations on document using insert(), find(), update(), remove() Document Fields: Name Regdno Year Semester branch Document Fields: Name EmpNo DOJ department Module Name: Create and Delete Databases and Collections Write MongoDB queries to Create and drop databases and collections. Introduction to MongoDB Queries Write MongoDB queries to work with records using find(), limit(), sort(), createIndex(), aggregate().

Experiments dates SOC: Mean stack technologies module - II 2025-26 I SEM

8 Develop a single page application by using synchronous or asynchronous Angular routing.

 Develop a single page application by using synchronous or asynchronous Angular routing. Step 1: Create a New Angular Project ng new spa-routing-demo cd spa-routing-demo ng serve -o Step 2: Generate Components ng g c home ng g c about ng g c contact Step 3: app-routing.module.ts import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; const routes: Routes = [   { path: '', loadChildren: () => import('./home/home.module').then(m => m.HomeModule) },   { path: 'about', loadChildren: () => import('./about/about.module').then(m => m.AboutModule) },   { path: 'contact', loadChildren: () => import('./contact/contact.module').then(m => m.ContactModule) }, ]; @NgModule({   imports: [RouterModule.forRoot(routes)],   exports: [RouterModule] }) export class AppRoutingModule {} Step 4: app.module.ts import { NgModule } from '@angular/core'; import { BrowserModule } from...