Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Component({
- selector: 'page-quiz',
- templateUrl: 'quiz.html'
- })
- export class QuizPage {
- public images = [
- 'assets/images/image1.png',
- 'assets/images/image2.png',
- 'assets/images/image3.png'
- ];
- }
- // now in the quiz.html
- <img *ngFor="let image of images" src="image">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement