SlideShare a Scribd company logo
DECAP918-
MULTIPLATFORM MOBILE APP DEVELOPMENT
WITH WEB TECHNOLOGIES
The Kick Start Session
Ionic Components
Ionic components are custom elements (based on Web Components) that provide a
cross-platform UI. These components handle the heavy lifting of rendering native-
style interfaces using HTML, CSS, and JavaScript.
Each component has a tag name like <ion-button>, <ion-header>, <ion-card>, etc.,
and can be customized via properties, slots, and CSS variables.
Before creating project first install
ionic cli
• D:ionicProject>npm install -g @ionic/cli
Now create a app name component
• D:ionicProject>ionic start component blank --type=angular
Now change directory using command
CD component
Now type ionic serve to start app
It will be opened in web browser
Now we have to see code the I open
this project in visual studio code
• Again I will open command prompt and go to that director
that is component directory
Now I will type code . It will open
project in visual studio code
App component open in vs code here we do
changes
Import and Use Components
Open src/app/home/home.page.html
Paste this code there
<ion-header>
<ion-toolbar>
<ion-title>
My Ionic App
</ion-title>
</ion-toolbar>
</ion-header>
<ion-content class="ion-padding">
<ion-card>
<ion-card-header>
<ion-card-title>Welcome</ion-card-
title>
</ion-card-header>
<ion-card-content>
This is an example of an Ionic card.
</ion-card-content>
</ion-card>
<ion-button expand="block"
color="primary" (click)="doSomething()">
Click Me
</ion-button>
</ion-content>
Open home.page.ts
Paste this
import { Component } from
'@angular/core';
import {
IonHeader,
IonToolbar,
IonTitle,
IonContent,
IonCard,
IonCardHeader,
IonCardContent,
IonButton,
IonCardTitle
} from
'@ionic/angular/standalo
ne';
import { AlertController }
from '@ionic/angular';
@Component({
selector: 'app-home',
standalone: true, // ✅ Required for standalone components
templateUrl: 'home.page.html',
styleUrls: ['home.page.scss'],
imports: [
IonHeader,
IonToolbar,
IonTitle,
IonContent,
IonCard,
IonCardHeader,
IonCardContent,
IonCardTitle,
IonButton
],
})
export class HomePage {
constructor(private alertController: AlertController) {}
async doSomething() {
const alert = await this.alertController.create({
header: 'Action',
message: 'Button clicked!',
buttons: ['OK']
});
await alert.present();
}
}
doSomething()
Save and see app
ion-alert
An Alert is a dialog that presents users with information or collects
information from the user using inputs. An alert appears on top of the
app's content, and must be manually dismissed by the user before they
can resume interaction with the app. It can also optionally have
a header, subHeader and message.
src/app/example.component.html
<ion-button id="present-alert">Click Me</ion-button>
<ion-alert
trigger="present-alert"
header="A Short Title Is Best"
subHeader="A Sub Header Is Optional"
message="A message should be a short, complete sentence."
[buttons]="alertButtons"
></ion-alert>
src/app/example.component.ts
import { Component } from '@angular/core';
import { IonAlert, IonButton } from '@ionic/angular/standalone';
@Component({
selector: 'app-example',
templateUrl: 'example.component.html',
styleUrls: ['example.component.css'],
imports: [IonAlert, IonButton],
})
export class ExampleComponent {
alertButtons = ['Action'];
}
Buttons
In the array of buttons, each button includes properties for its text, and
optionally a handler. If a handler returns false then the alert will not
automatically be dismissed when the button is clicked. All buttons will
show up in the order they have been added to the buttons array from left
to right. Note: The right most button (the last one in the array) is the
main button.
Optionally, a role property can be added to a button, such as cancel. If
a cancel role is on one of the buttons, then if the alert is dismissed by
tapping the backdrop, then it will fire the handler from the button with a
cancel role.
src/app/example.component.html
<ion-button id="present-alert">Click Me</ion-button>
<ion-alert
trigger="present-alert"
header="Alert!"
[buttons]="alertButtons"
(didDismiss)="setResult($event)"
></ion-alert>
src/app/example.component.ts
import { Component } from '@angular/core';
import { IonAlert, IonButton } from '@ionic/angular/standalone';
import type { OverlayEventDetail } from '@ionic/core';
@Component({
selector: 'app-example',
templateUrl: 'example.component.html',
styleUrls: ['example.component.css'],
imports: [IonAlert, IonButton],
})
export class ExampleComponent {
public alertButtons = [
{
text: 'Cancel',
role: 'cancel',
handler: () => {
console.log('Alert canceled');
},
},
{
text: 'OK',
role: 'confirm',
handler: () => {
console.log('Alert confirmed');
},
},
];
setResult(event: CustomEvent<OverlayEventDetail>) {
console.log(`Dismissed with role: ${event.detail.role}`);
}
}
Alerts Inputs
Alerts can also include several different inputs whose data can be passed back to the app. Inputs can be used as a
simple way to prompt users for information. Radios, checkboxes and text inputs are all accepted, but they cannot
be mixed. For example, an alert could have all radio button inputs, or all checkbox inputs, but the same alert
cannot mix radio and checkbox inputs. Do note however, different types of "text" inputs can be mixed, such
as url, email, text, textarea etc. If you require a complex form UI which doesn't fit within the guidelines of an
alert then we recommend building the form within a modal instead.
src/app/example.component.html
<ion-button id="present-alert">Click Me</ion-button>
<ion-alert
trigger="present-alert"
header="Please enter your info"
[buttons]="alertButtons"
[inputs]="alertInputs"
></ion-alert>
src/app/example.component.ts
• import { Component } from '@angular/core';
import { IonAlert, IonButton } from
'@ionic/angular/standalone';
@Component({
selector: 'app-example',
templateUrl: 'example.component.html',
styleUrls: ['example.component.css'],
imports: [IonAlert, IonButton],
})
export class ExampleComponent {
public alertButtons = ['OK'];
public alertInputs = [
{
placeholder: 'Name',
},
{
placeholder: 'Nickname (max 8 characters)',
attributes: {
maxlength: 8,
},
},
{
type: 'number',
placeholder: 'Age',
min: 1,
max: 100,
},
{
type: 'textarea',
placeholder: 'A little about yourself',
},
];
}
ion-grid
The grid is a powerful mobile-first flexbox system for building custom
layouts. It is composed of three units — a grid, row(s) and column(s).
Columns will expand to fill the row, and will resize to fit additional
columns. It is based on a 12 column layout with different breakpoints
based on the screen size. The number of columns can be customized
using CSS.
1. Grids act as a container for all rows and columns. Grids take up the full width of
their container, but adding the fixed property will set the width based on the
screen size, see Fixed Grid below.
2. Rows are horizontal groups of columns that line the columns up properly.
3. Content should be placed within columns, and only columns may be immediate
children of rows.
4. The size property indicates the number of columns to use out of the default 12 per
row. So, size="4" can be added to a column in order to take up 1/3 of the grid, or
4 of the 12 columns.
5. Columns without a value for size will automatically have equal widths. For
example, four columns will each automatically be 25% wide.
• Column widths are set as a percentage, so they’re always fluid and
sized relative to their parent element.
• There is padding between individual columns. However, the padding
can be removed from the grid and columns by adding the ion-no-
padding class to the grid. See the CSS Utilities for more styles that can
be applied to the grid.
• There are five grid tiers, one for each responsive breakpoint: all
breakpoints (extra small), small, medium, large, and extra large.
• Grid tiers are based on minimum widths, meaning they apply to their
tier and all those larger than them (e.g., size-sm="4" applies to small,
medium, large, and extra large devices).
src/app/example.component.html
<ion-grid>
<ion-row>
<ion-col>1</ion-col>
<ion-col>2</ion-col>
<ion-col>3</ion-col>
</ion-row>
</ion-grid>
<ion-grid>
<ion-row>
<ion-col>1</ion-col>
<ion-col>2</ion-col>
<ion-col>3</ion-col>
<ion-col>4</ion-col>
<ion-col>5</ion-col>
<ion-col>6</ion-col>
</ion-row>
</ion-grid>
<ion-grid>
<ion-row>
<ion-col>1</ion-col>
<ion-col>2</ion-col>
<ion-col>3</ion-col>
<ion-col>4</ion-col>
<ion-col>5</ion-col>
<ion-col>6</ion-col>
<ion-col>7</ion-col>
<ion-col>8</ion-col>
<ion-col>9</ion-col>
<ion-col>10</ion-col>
<ion-col>11</ion-col>
<ion-col>12</ion-col>
</ion-row>
</ion-grid>
src/app/example.component.css
ion-col {
background-color: green;
border: solid 1px yellow;
color: pink;
text-align: center;
}
import { Component } from '@angular/core';
import { IonCol, IonGrid, IonRow } from '@ionic/angular/standalone';
@Component({
selector: 'app-example',
templateUrl: 'example.component.html',
styleUrls: ['example.component.css'],
imports: [IonCol, IonGrid, IonRow],
})
export class ExampleComponent {}
src/app/
example.component.ts

More Related Content

Similar to mobile application using automatin using node ja java on (20)

PPTX
Mobile Application Development class 003
Dr. Mazin Mohamed alkathiri
 
PPTX
Create New Android Layout
Transpose Solutions Inc
 
DOCX
ANGULAR JS LAB MANUAL(final) vtu2021 sch
kannikadg
 
PDF
Android app development guide for freshers by ace web academy
Ace Web Academy -Career Development Center
 
PDF
Top 7 Angular Best Practices to Organize Your Angular App
Katy Slemon
 
PDF
Web components with Angular
Ana Cidre
 
PPTX
m365_slides.pptx
adewad
 
PPTX
Angular Framework ppt for beginners and advanced
Preetha Ganapathi
 
PDF
MoodLocator HwT
JDihlmann
 
PDF
01 09 - graphical user interface - basic widgets
Siva Kumar reddy Vasipally
 
PDF
Building accessible web components without tears
Russ Weakley
 
DOCX
ASP.NET MVC3 RAD
Mădălin Ștefîrcă
 
PPTX
Angular2 and You
Joseph Jorden
 
PDF
What is Angular and some of the terms used
Your Study_Buddy
 
DOCX
Cis 407 i lab 1 of 7
helpido9
 
PPTX
mean stack
michaelaaron25322
 
PPTX
Android Tutorials : Basic widgets
Prajyot Mainkar
 
PPTX
04 objective-c session 4
Amr Elghadban (AmrAngry)
 
PPTX
Implementation of Push Notification in React Native Android app using Firebas...
naseeb20
 
PDF
Introduction of Xcode
Dhaval Kaneria
 
Mobile Application Development class 003
Dr. Mazin Mohamed alkathiri
 
Create New Android Layout
Transpose Solutions Inc
 
ANGULAR JS LAB MANUAL(final) vtu2021 sch
kannikadg
 
Android app development guide for freshers by ace web academy
Ace Web Academy -Career Development Center
 
Top 7 Angular Best Practices to Organize Your Angular App
Katy Slemon
 
Web components with Angular
Ana Cidre
 
m365_slides.pptx
adewad
 
Angular Framework ppt for beginners and advanced
Preetha Ganapathi
 
MoodLocator HwT
JDihlmann
 
01 09 - graphical user interface - basic widgets
Siva Kumar reddy Vasipally
 
Building accessible web components without tears
Russ Weakley
 
ASP.NET MVC3 RAD
Mădălin Ștefîrcă
 
Angular2 and You
Joseph Jorden
 
What is Angular and some of the terms used
Your Study_Buddy
 
Cis 407 i lab 1 of 7
helpido9
 
mean stack
michaelaaron25322
 
Android Tutorials : Basic widgets
Prajyot Mainkar
 
04 objective-c session 4
Amr Elghadban (AmrAngry)
 
Implementation of Push Notification in React Native Android app using Firebas...
naseeb20
 
Introduction of Xcode
Dhaval Kaneria
 

More from vishal choudhary (20)

PPTX
Pixel to Percentage conversion Convert left and right padding of a div to per...
vishal choudhary
 
PPTX
esponsive web design means that your website (
vishal choudhary
 
PPTX
function in php using like three type of function
vishal choudhary
 
PPTX
data base connectivity in php using msql database
vishal choudhary
 
PPTX
software evelopment life cycle model and example of water fall model
vishal choudhary
 
PPTX
software Engineering lecture on development life cycle
vishal choudhary
 
PPTX
strings in php how to use different data types in string
vishal choudhary
 
PPTX
OPEN SOURCE WEB APPLICATION DEVELOPMENT question
vishal choudhary
 
PPTX
web performnace optimization using css minification
vishal choudhary
 
PPTX
web performance optimization using style
vishal choudhary
 
PPTX
Data types and variables in php for writing and databse
vishal choudhary
 
PPTX
Data types and variables in php for writing
vishal choudhary
 
PPTX
Data types and variables in php for writing
vishal choudhary
 
PPTX
sofwtare standard for test plan it execution
vishal choudhary
 
PPTX
Software test policy and test plan in development
vishal choudhary
 
PPTX
function in php like control loop and its uses
vishal choudhary
 
PPTX
introduction to php and its uses in daily
vishal choudhary
 
PPTX
data type in php and its introduction to use
vishal choudhary
 
PPTX
PHP introduction how to create and start php
vishal choudhary
 
PPT
SE-Lecture1.ppt
vishal choudhary
 
Pixel to Percentage conversion Convert left and right padding of a div to per...
vishal choudhary
 
esponsive web design means that your website (
vishal choudhary
 
function in php using like three type of function
vishal choudhary
 
data base connectivity in php using msql database
vishal choudhary
 
software evelopment life cycle model and example of water fall model
vishal choudhary
 
software Engineering lecture on development life cycle
vishal choudhary
 
strings in php how to use different data types in string
vishal choudhary
 
OPEN SOURCE WEB APPLICATION DEVELOPMENT question
vishal choudhary
 
web performnace optimization using css minification
vishal choudhary
 
web performance optimization using style
vishal choudhary
 
Data types and variables in php for writing and databse
vishal choudhary
 
Data types and variables in php for writing
vishal choudhary
 
Data types and variables in php for writing
vishal choudhary
 
sofwtare standard for test plan it execution
vishal choudhary
 
Software test policy and test plan in development
vishal choudhary
 
function in php like control loop and its uses
vishal choudhary
 
introduction to php and its uses in daily
vishal choudhary
 
data type in php and its introduction to use
vishal choudhary
 
PHP introduction how to create and start php
vishal choudhary
 
SE-Lecture1.ppt
vishal choudhary
 
Ad

Recently uploaded (20)

PDF
BioSensors glucose monitoring, cholestrol
nabeehasahar1
 
PPTX
Pharmaceuticals and fine chemicals.pptxx
jaypa242004
 
PPT
inherently safer design for engineering.ppt
DhavalShah616893
 
PDF
A presentation on the Urban Heat Island Effect
studyfor7hrs
 
PPTX
Hashing Introduction , hash functions and techniques
sailajam21
 
PDF
Water Design_Manual_2005. KENYA FOR WASTER SUPPLY AND SEWERAGE
DancanNgutuku
 
PPTX
Break Statement in Programming with 6 Real Examples
manojpoojary2004
 
PDF
ARC--BUILDING-UTILITIES-2-PART-2 (1).pdf
IzzyBaniquedBusto
 
PPTX
MobileComputingMANET2023 MobileComputingMANET2023.pptx
masterfake98765
 
PPTX
ISO/IEC JTC 1/WG 9 (MAR) Convenor Report
Kurata Takeshi
 
PPTX
site survey architecture student B.arch.
sri02032006
 
PPTX
The Role of Information Technology in Environmental Protectio....pptx
nallamillisriram
 
PPTX
UNIT DAA PPT cover all topics 2021 regulation
archu26
 
PPTX
MPMC_Module-2 xxxxxxxxxxxxxxxxxxxxx.pptx
ShivanshVaidya5
 
PPTX
Innowell Capability B0425 - Commercial Buildings.pptx
regobertroza
 
PPTX
artificial intelligence applications in Geomatics
NawrasShatnawi1
 
PDF
Additional Information in midterm CPE024 (1).pdf
abolisojoy
 
PDF
PORTFOLIO Golam Kibria Khan — architect with a passion for thoughtful design...
MasumKhan59
 
PDF
Introduction to Productivity and Quality
মোঃ ফুরকান উদ্দিন জুয়েল
 
PDF
monopile foundation seminar topic for civil engineering students
Ahina5
 
BioSensors glucose monitoring, cholestrol
nabeehasahar1
 
Pharmaceuticals and fine chemicals.pptxx
jaypa242004
 
inherently safer design for engineering.ppt
DhavalShah616893
 
A presentation on the Urban Heat Island Effect
studyfor7hrs
 
Hashing Introduction , hash functions and techniques
sailajam21
 
Water Design_Manual_2005. KENYA FOR WASTER SUPPLY AND SEWERAGE
DancanNgutuku
 
Break Statement in Programming with 6 Real Examples
manojpoojary2004
 
ARC--BUILDING-UTILITIES-2-PART-2 (1).pdf
IzzyBaniquedBusto
 
MobileComputingMANET2023 MobileComputingMANET2023.pptx
masterfake98765
 
ISO/IEC JTC 1/WG 9 (MAR) Convenor Report
Kurata Takeshi
 
site survey architecture student B.arch.
sri02032006
 
The Role of Information Technology in Environmental Protectio....pptx
nallamillisriram
 
UNIT DAA PPT cover all topics 2021 regulation
archu26
 
MPMC_Module-2 xxxxxxxxxxxxxxxxxxxxx.pptx
ShivanshVaidya5
 
Innowell Capability B0425 - Commercial Buildings.pptx
regobertroza
 
artificial intelligence applications in Geomatics
NawrasShatnawi1
 
Additional Information in midterm CPE024 (1).pdf
abolisojoy
 
PORTFOLIO Golam Kibria Khan — architect with a passion for thoughtful design...
MasumKhan59
 
Introduction to Productivity and Quality
মোঃ ফুরকান উদ্দিন জুয়েল
 
monopile foundation seminar topic for civil engineering students
Ahina5
 
Ad

mobile application using automatin using node ja java on

  • 1. DECAP918- MULTIPLATFORM MOBILE APP DEVELOPMENT WITH WEB TECHNOLOGIES The Kick Start Session
  • 3. Ionic components are custom elements (based on Web Components) that provide a cross-platform UI. These components handle the heavy lifting of rendering native- style interfaces using HTML, CSS, and JavaScript. Each component has a tag name like <ion-button>, <ion-header>, <ion-card>, etc., and can be customized via properties, slots, and CSS variables.
  • 4. Before creating project first install ionic cli • D:ionicProject>npm install -g @ionic/cli
  • 5. Now create a app name component • D:ionicProject>ionic start component blank --type=angular
  • 6. Now change directory using command CD component
  • 7. Now type ionic serve to start app
  • 8. It will be opened in web browser
  • 9. Now we have to see code the I open this project in visual studio code • Again I will open command prompt and go to that director that is component directory
  • 10. Now I will type code . It will open project in visual studio code
  • 11. App component open in vs code here we do changes
  • 12. Import and Use Components Open src/app/home/home.page.html
  • 13. Paste this code there <ion-header> <ion-toolbar> <ion-title> My Ionic App </ion-title> </ion-toolbar> </ion-header> <ion-content class="ion-padding"> <ion-card> <ion-card-header> <ion-card-title>Welcome</ion-card- title> </ion-card-header> <ion-card-content> This is an example of an Ionic card. </ion-card-content> </ion-card> <ion-button expand="block" color="primary" (click)="doSomething()"> Click Me </ion-button> </ion-content>
  • 15. Paste this import { Component } from '@angular/core'; import { IonHeader, IonToolbar, IonTitle, IonContent, IonCard, IonCardHeader, IonCardContent, IonButton, IonCardTitle } from '@ionic/angular/standalo ne'; import { AlertController } from '@ionic/angular'; @Component({ selector: 'app-home', standalone: true, // ✅ Required for standalone components templateUrl: 'home.page.html', styleUrls: ['home.page.scss'], imports: [ IonHeader, IonToolbar, IonTitle, IonContent, IonCard, IonCardHeader, IonCardContent, IonCardTitle, IonButton ], }) export class HomePage { constructor(private alertController: AlertController) {} async doSomething() { const alert = await this.alertController.create({ header: 'Action', message: 'Button clicked!', buttons: ['OK'] }); await alert.present(); } }
  • 18. ion-alert An Alert is a dialog that presents users with information or collects information from the user using inputs. An alert appears on top of the app's content, and must be manually dismissed by the user before they can resume interaction with the app. It can also optionally have a header, subHeader and message.
  • 19. src/app/example.component.html <ion-button id="present-alert">Click Me</ion-button> <ion-alert trigger="present-alert" header="A Short Title Is Best" subHeader="A Sub Header Is Optional" message="A message should be a short, complete sentence." [buttons]="alertButtons" ></ion-alert>
  • 20. src/app/example.component.ts import { Component } from '@angular/core'; import { IonAlert, IonButton } from '@ionic/angular/standalone'; @Component({ selector: 'app-example', templateUrl: 'example.component.html', styleUrls: ['example.component.css'], imports: [IonAlert, IonButton], }) export class ExampleComponent { alertButtons = ['Action']; }
  • 21. Buttons In the array of buttons, each button includes properties for its text, and optionally a handler. If a handler returns false then the alert will not automatically be dismissed when the button is clicked. All buttons will show up in the order they have been added to the buttons array from left to right. Note: The right most button (the last one in the array) is the main button. Optionally, a role property can be added to a button, such as cancel. If a cancel role is on one of the buttons, then if the alert is dismissed by tapping the backdrop, then it will fire the handler from the button with a cancel role.
  • 23. src/app/example.component.ts import { Component } from '@angular/core'; import { IonAlert, IonButton } from '@ionic/angular/standalone'; import type { OverlayEventDetail } from '@ionic/core'; @Component({ selector: 'app-example', templateUrl: 'example.component.html', styleUrls: ['example.component.css'], imports: [IonAlert, IonButton], })
  • 24. export class ExampleComponent { public alertButtons = [ { text: 'Cancel', role: 'cancel', handler: () => { console.log('Alert canceled'); }, }, { text: 'OK', role: 'confirm', handler: () => { console.log('Alert confirmed'); }, }, ]; setResult(event: CustomEvent<OverlayEventDetail>) { console.log(`Dismissed with role: ${event.detail.role}`); } }
  • 25. Alerts Inputs Alerts can also include several different inputs whose data can be passed back to the app. Inputs can be used as a simple way to prompt users for information. Radios, checkboxes and text inputs are all accepted, but they cannot be mixed. For example, an alert could have all radio button inputs, or all checkbox inputs, but the same alert cannot mix radio and checkbox inputs. Do note however, different types of "text" inputs can be mixed, such as url, email, text, textarea etc. If you require a complex form UI which doesn't fit within the guidelines of an alert then we recommend building the form within a modal instead.
  • 27. src/app/example.component.ts • import { Component } from '@angular/core'; import { IonAlert, IonButton } from '@ionic/angular/standalone'; @Component({ selector: 'app-example', templateUrl: 'example.component.html', styleUrls: ['example.component.css'], imports: [IonAlert, IonButton], }) export class ExampleComponent { public alertButtons = ['OK'];
  • 28. public alertInputs = [ { placeholder: 'Name', }, { placeholder: 'Nickname (max 8 characters)', attributes: { maxlength: 8, }, }, { type: 'number', placeholder: 'Age', min: 1, max: 100, }, { type: 'textarea', placeholder: 'A little about yourself', }, ]; }
  • 29. ion-grid The grid is a powerful mobile-first flexbox system for building custom layouts. It is composed of three units — a grid, row(s) and column(s). Columns will expand to fill the row, and will resize to fit additional columns. It is based on a 12 column layout with different breakpoints based on the screen size. The number of columns can be customized using CSS.
  • 30. 1. Grids act as a container for all rows and columns. Grids take up the full width of their container, but adding the fixed property will set the width based on the screen size, see Fixed Grid below. 2. Rows are horizontal groups of columns that line the columns up properly. 3. Content should be placed within columns, and only columns may be immediate children of rows. 4. The size property indicates the number of columns to use out of the default 12 per row. So, size="4" can be added to a column in order to take up 1/3 of the grid, or 4 of the 12 columns. 5. Columns without a value for size will automatically have equal widths. For example, four columns will each automatically be 25% wide.
  • 31. • Column widths are set as a percentage, so they’re always fluid and sized relative to their parent element. • There is padding between individual columns. However, the padding can be removed from the grid and columns by adding the ion-no- padding class to the grid. See the CSS Utilities for more styles that can be applied to the grid. • There are five grid tiers, one for each responsive breakpoint: all breakpoints (extra small), small, medium, large, and extra large. • Grid tiers are based on minimum widths, meaning they apply to their tier and all those larger than them (e.g., size-sm="4" applies to small, medium, large, and extra large devices).
  • 33. src/app/example.component.css ion-col { background-color: green; border: solid 1px yellow; color: pink; text-align: center; }
  • 34. import { Component } from '@angular/core'; import { IonCol, IonGrid, IonRow } from '@ionic/angular/standalone'; @Component({ selector: 'app-example', templateUrl: 'example.component.html', styleUrls: ['example.component.css'], imports: [IonCol, IonGrid, IonRow], }) export class ExampleComponent {} src/app/ example.component.ts