Angular and Phaser

Using Phaser in an Angular Component

Highlights

% npm i -g @angular/cli
% ng new haddley-angular-phaser
% cd haddley-angular-phaser
% npm i phaser
% code .
% ng generate component bounce

angular.json "scripts": ["node_modules/phaser/dist/phaser.min.js"]

ng new haddley-angular-phaser

npm i phaser

ng generate component bounce

bounce.component.ts

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