Skip to content

Commit d90cc66

Browse files
committed
chore(): Remove linter warning on flashcard page
1 parent e3c764f commit d90cc66

File tree

1 file changed

+17
-15
lines changed

1 file changed

+17
-15
lines changed

src/pages/miscellaneous/flash-card/flash-card.ts

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,23 @@ import { NavController, NavParams } from 'ionic-angular';
66
templateUrl: 'flash-card.html'
77
})
88
export class FlashCardPage {
9-
private flashCards = [
10-
{
11-
front: { image: 'assets/img/flashcards/namaste.jpg', title: 'Namaste', subtitle: 'नमस्ते'},
12-
back: { title: 'meaning', subtitle: 'Hello, Greetings, I bless the divine in you', content: 'It is used to greet people every time they meet. It is usually initiated by the juniors'}
13-
},
14-
{
15-
front: { image: 'assets/img/flashcards/how_are_you.jpg', title: '(Tapailai) Kasto chha?', subtitle: '( तपाईंलाई ) कस्तो छ ?'},
16-
back: { title: 'meaning', subtitle: 'How are you?', content: 'It is used to ask people how they are doing or feeling.'}
17-
},
18-
{
19-
front: { image: 'assets/img/flashcards/sorry.jpg', title: 'Maaph garnuhos', subtitle: 'माफ गर्नुहोस्'},
20-
back: { title: 'meaning', subtitle: 'Excuse me/ pardon me / Sorry', content: 'It is used to ask for forgiveness when you do make mistakes.'}
21-
}
22-
]
23-
constructor(public navCtrl: NavController, public navParams: NavParams) {}
9+
private flashCards = [];
10+
constructor(public navCtrl: NavController, public navParams: NavParams) {
11+
this.flashCards = [
12+
{
13+
front: { image: 'assets/img/flashcards/namaste.jpg', title: 'Namaste', subtitle: 'नमस्ते' },
14+
back: { title: 'meaning', subtitle: 'Hello, Greetings, I bless the divine in you', content: 'It is used to greet people every time they meet. It is usually initiated by the juniors' }
15+
},
16+
{
17+
front: { image: 'assets/img/flashcards/how_are_you.jpg', title: '(Tapailai) Kasto chha?', subtitle: '( तपाईंलाई ) कस्तो छ ?' },
18+
back: { title: 'meaning', subtitle: 'How are you?', content: 'It is used to ask people how they are doing or feeling.' }
19+
},
20+
{
21+
front: { image: 'assets/img/flashcards/sorry.jpg', title: 'Maaph garnuhos', subtitle: 'माफ गर्नुहोस्' },
22+
back: { title: 'meaning', subtitle: 'Excuse me/ pardon me / Sorry', content: 'It is used to ask for forgiveness when you do make mistakes.' }
23+
}
24+
]
25+
}
2426

2527
ionViewDidLoad() {
2628
console.log('ionViewDidLoad FlashCardPage');

0 commit comments

Comments
 (0)