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
Update angular.json:
JSON
1"scripts": ["node_modules/phaser/dist/phaser.min.js"]

ng new haddley-angular-phaser

npm i phaser

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

I uploaded files to the /src/assets folder

I added a route

I removed unnecessary html

allowSyntheticDefaultImports

scripthost

VideoFrameCallbackMetadata issue

updating budgets

running