How to build a full-page website in Angular

12. Add a custom directive

And now for the fun part! Our website is mostly functional except for the fact that our background image does not stretch to fit the full real estate of the browser. We are going to tackle this problem by creating a custom directive that will resize our image to make it full page height and width.

Thank you for reading 5 articles this month* Join now for unlimited access

Enjoy your first month for just £1 / $1 / €1

*Read 5 free articles per month without a subscription

Join now for unlimited access

Try first month for just £1 / $1 / €1