2X faster development
The ultimate Angular UI toolkit to boost your development speed.
A quick start project that helps you to create an Angular 11 Card with minimal code configuration.
Project pre-requisites
Make sure that you have the compatible versions of TypeScript and Angular in your machine before starting to work on this project.
Dependencies
The Card is pure CSS component so no other package dependencies are needed to render the Card. The Card CSS files are available in the Syncfusion `ej2-angular-layouts` package from npmjs, which are distributed in npm as @syncfusion scoped packages. Creating Angular Project
We will see the Angular 11 project creation steps using the Angular CLI tool.
npm install -g @angular/cli@11.2.3
Note: If you would like to follow and run the application in Angular 6 or Angular 5 or Angular 4, you need to replace the CLI command version number with corresponding angular version number.
npm install -g @angular/cli@<CLI VERSION>
npm install @syncfusion/ej2-angular-layouts --save
Adding Angular 11 Card
You can add the Angular 11 Card component by using class `e-card` in the `div` element.
[app.component.html]
<div tabindex="0" class="e-card" id="basic"> <div class="e-card-header"> <div class="e-card-header-caption"> <div class="e-card-title">Advanced UWP</div> </div> </div> <div class="e-card-content"> Communicating with Windows 10 and Other Apps, the second in a five-part series written by Succinctly series author Matteo Pagani. To download the complete white paper, and other papers in the series, visit the White Paper section of Syncfusion’s Technology Resource Portal. </div> </div>
[styles.css]
@import '../node_modules/@syncfusion/ej2-base/styles/material.css'; @import '../node_modules/@syncfusion/ej2-layouts/styles/material.css';
[index.html]
<link href="https://cdn.syncfusion.com/ej2/material.css" rel="stylesheet" />
There are more options to explore with Angular 11 Card.
|
2X faster development
The ultimate Angular UI toolkit to boost your development speed.
This page will automatically be redirected to the sign-in page in 10 seconds.