Easily embed Youtube videos in your Angular applications

Image for post
Image for post

AngularInDepth is moving away from Medium. More recent articles are hosted on the new platform inDepth.dev. Thanks for being part of indepth movement!

TL;DR; —

There’s a cool new component in the Angular world 🌎! It makes it easier than ever before to add YouTube videos to your Angular applications. Install it today and try it out:

npm i @angular/youtube-player

To find out more details about it, and learn about the full API, read on! 📚

Image for post
Image for post
Photo by Jake Hills on Unsplash

The Angular Youtube Player component 🎉:

One of the big exciting recent changes to Angular (other than Ivy), is the rename of the repository to ✨. This rename is meant to capture the fact that the repository is for so much more than only the Angular Material library! The Angular Components repository already also contains the Angular Component Dev Kit, and it is going to be the place where new, high-quality Angular components are built and shared with the community. …


Or, how I’m a big dumb dummy, but JavaScript is good.

TL;DR: 💯

I didn’t make an important appointment, and there were none available for next month… So I used JavaScript to find one within a few days! I used Chrome DevTools to figure out how the appointment booking website work, and wrote some JavaScript to email me when appointments became available!

Image for post
Image for post
Sverige! Photo by Jonathan Brinkhorst on Unsplash

Surprise, surprise. I messed up. 🤪

I recently moved from New Zealand 🇳🇿 to Sweden 🇸🇪, and to be honest with you, it’s been pretty straightforward! I was lucky enough to get a role where a relocation agency organised almost my entire relocation. I had to fill out a few forms and pack my stuff. In fact, so much of it was handled for me that I didn’t do my one super important task— book a biometrics appointment at Migrationsverket in Stockholm. This appointment is a critical step in the migration process that would allow me to get a personnummer.


Image for post
Image for post

AngularInDepth is moving away from Medium. More recent articles are hosted on the new platform inDepth.dev. Thanks for being part of indepth movement!

TL;DR; 🤯

Decorators are cool, and they seem like a great way to write powerful APIs. Unfortunately, they have a few pretty big drawbacks:

  • They’re still unstandardised and experimental 🔬. That means they’re likely to change in the future.
  • They can also mess up tree-shaking 🌳, which is a big deal when you’re writing a library.

The Angular framework heavily relies on decorators, but at build-time they compile them into static code to avoid these issues. …

About

Craig Spence

mostly just tired. opinions not my own.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store