MEAN Stack Technologies Module-II
- Write Angular code that illustrate the following directives:
- ng-init
- ng-repeat
- ng-model
Click Here for Solution
- Build your first Angular application with Node.js.
Click Here for Solution
- Create a new component called hello and render Hello Angular on the page.
Click Here for Solution
- Add an event to the hello component template and when it is clicked, it should change the course name.
Click Here for Solution
-
- Illustrate structural directive ngIf-else.
- Create a courses array and rendering it in the template using ngFor directive in a list format.
- Display the correct option based on the value passed to ngSwitch directive.
Click Here for Solution
-
- Apply multiple CSS properties to a paragraph in a component using ngStyle.
- Apply multiple CSS classes to the text using ngClass directive.
Click Here for Solution
-
- Binding image with class property using property binding.
- Binding an element using inline style and user actions like entering text in input fields.
Click Here for Solution
-
- Display the product code in lowercase and product name in uppercase using built-in pipes.
- Apply built-in pipes with parameters to display product details.
Click Here for Solution
-
- Load CourseslistComponent in the root component when a user clicks on the View courses list button.
- Create an AppComponent that displays a dropdown with a list of courses as values in it. Create another component called the CoursesList component and load it in AppComponent which should display the course details. When the user selects a course from the dropdown.
Click Here for Solution