Answered step by step
Verified Expert Solution
Question
1 Approved Answer
create a New Angular App cName: ourloginname . Ensure it is a modular application using Angular Modules ( NOT Standalone ) . Include Angular Material
create a New Angular App
cName: ourloginname
Ensure it is a modular application using Angular Modules NOT Standalone
Include Angular Material during the setup process.
Download and Setup
Download Assignmentzip.
Extract and place the images from the ZIP into the assetsimages folder.
Application Structure
Global Styling
Ensure the application is formatted for landscape view only.
Set a global style to apply a minimum background color, text color, and center alignment for header and footer.
Create a Class
File: classYourloginname.ts eg classDoeJane.ts
Class: AClassYourloginname eg AClassDoeJane
Fields:
fullNameYOURID eg fullName
idYOURID eg id
emailYOUREmail eg email
loginYOURLogin eg login
App Component
Import the class created.
Create a new variable profileYourloginname eg profileDoeJane and populate it with your personal information.
Components
Header and Footer Components
Header Component
Name: headeryourloginname eg headerdoejane
Display: A Summer for
Style: Use global styles for background color, text color, and center alignment.
Footer Component
Name: footeryourloginname eg footerdoejane
Display: Email: Login:
Style: Use global styles for background color, text color, and center alignment.
Card Components
Create components:
aceyourloginname eg acedoejane
kingyourloginname eg kingdoejane
queenyourloginname eg queendoejane
jackyourloginname eg jackdoejane
Each component should:
Include a header styled using ngClass based on card type.
Display an image of the card.
Have two buttons:
Rotate Button: Calls a service to rotate the card by a specific degree.
Zero Button: Resets the card rotation to degrees.
Services
Card Service
Name: cardyourloginname eg carddoejane
Function: yourloginnameChanges
Parameters:
any type variable for the ID of the card.
number type variable for the degrees to rotate.
Functionality:
Rotate the card to the specified degrees with a second transition.
Ensure cumulative rotation with each button click.
Routing
Setup Routing
Configure routing for all card components.
Set aceyourloginname as the default view.
Include navigation to call each component.
Example Variables and Functionality
Each card component should have:
Title, Suit, Image, Degree, Zero variables.
Use ngClass for card title styling.
Rotate and Zero buttons to interact with the card servic
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started