Angular and Phaser
Neil Haddley • May 10, 2023
Using Phaser in an Angular Component
Highlights
BASH
1% npm i -g @angular/cli 2% ng new haddley-angular-phaser 3% cd haddley-angular-phaser 4% npm i phaser 5% code . 6% ng generate component bounce
I updated angular.json:
JSON
1"scripts": ["node_modules/phaser/dist/phaser.min.js"]

I ran ng new haddley-angular-phaser

I installed phaser with npm

I generated the bounce component
![I updated angular.json with "scripts": ["node_modules/phaser/dist/phaser.min.js"]](/assets/images/angularphaser/screen-shot-2023-04-23-at-8.16.17-pm-1836x711.png)
I updated angular.json with "scripts": ["node_modules/phaser/dist/phaser.min.js"]

I uploaded files to the /src/assets folder

I added a route

I removed unnecessary html

I enabled allowSyntheticDefaultImports

I added scripthost

I encountered a VideoFrameCallbackMetadata issue

I updated the budgets

The app was running