r/wgu_devs • • 19d ago

D280 Project Question

Trying to work on this, and I've figured out a 'pipeline' of sorts that needs to be how the code works:
1> Get key from SVG via an event listener that calls a function that returns the ID from event target
2> Using key, query API
3> Decrypt returned JSON/XML to acquire information
4> Via interpolation, save and display information.

Except, I can't figure out where to even place the event listener function.
Do I place it within the .ts file, or a script element within the .app.component.html file?? Is that even a thing I can do?
Sorry to be asking what must've been asked a hundred times by now, but I've been stuck on this for three months since the course material's not very clear ( and in a format I don't like. )

0 Upvotes

0 comments sorted by