Mean Stack Technologies Lab Manual
Mean Stack Technologies Lab Manual
Module-2
Lab Manual
1. Course Name: Angular JS
Module Name: Angular Application Setup
Observe the link http://localhost:4200/welcome on which the mCart
application is running. Perform the below activities to understand the
features of the application.
https://infyspringboard.onwingspan.com/web/en/viewer/webmodule/lex_
24049616594198490000_shared?collectionId=lex_208585155432546000
00_shared&collectionType=Course
This will create a folder called node_modules with all the dependencies installed inside it.
Output:-
2. Course Name: Angular JS Module
Name: Components and Modules
Create a new component called hello and render Hello Angular on the page
https://infyspringboard.onwingspan.com/web/en/viewer/webmodule/lex_
28217843279641040000_shared?collectionId=lex_208585155432546000
00_shared&collectionType=Course
Output:-
3. Course Name: Angular JS Module
Name: Elements of Template
Add an event to the hello component template and when it is clicked, it
should change the courseName.
https://infyspringboard.onwingspan.com/web/en/viewer/webmodule/lex_
19226434057992030000_shared?collectionId=lex_208585155432546000
00_shared&collectionType=Course
Output:-
When a user clicks on the paragraph, the course name will be changed to 'Typescript'.
4. Course Name: Angular JS
Module Name: Structural Directives - ngIf
Create a login form with username and password fields. If the user enters
the correct credentials, it should render a "Welcome <>" message
otherwise it should render "Invalid Login!!! Please try again..." message.
Aim:-
To create a login form with username and password fields. If the user
enters the correct credentials, it should render a "Welcome <>" message
otherwise it should render "Invalid Login!!! Please try again..." message.
Output:-
Welcome Admin
Aim:-
To create a courses array and rendering it in the template using ngFor
directive in a list format.
Output:-
0-TypeScript
1-Angular
2-Node JS
3-TypeScript
6. Course Name: Angular JS
Module Name: Attribute Directives – ngStyle
Apply multiple CSS properties to a paragraph in a component using
ngStyle.
Aim:-
To apply multiple CSS properties to a paragraph in a component using
ngStyle.
3. Save the files and check output in the browser.
Output:-
7. Course Name: Angular JS
Module Name: ngClass
Apply multiple CSS classes to the text using ngClass directive.
Aim:-
To apply multiple CSS classes to the text using ngClass directive.
4. Save the files and check output in the browser.
Output:-
8. Course Name: Angular JS
Module Name: Property Binding
Binding image with class property using property binding.
Aim:-
Binding image with class property using property binding.
Output:-
9. Course Name: Angular JS
Module Name: Attribute Binding
Binding colspan attribute of a table element to the class property.
Aim:-
Binding colspan attribute of a table element to the class property.
Output:-
10. Course Name: Angular JS
Module Name: Built in Pipes
Display the product code in lowercase and product name in uppercase
using built-in pipes.
Aim:-
To display the product code in lowercase and product name in uppercase
using built-in pipes.
Output:-