AngularDart Pitfalls pt.1 (Components not showing up!?!)

J’aime l’œuf
Blood Engineering
Published in
1 min readApr 25, 2019
AngularDart

So you just started learning how to build Single Page Applications in AngularDart. As you work on the tutorials, you want to create a new component or add some features to the existing ones, but after just 1 edit, the component just disappears!?!

Being shook, you check your “webdev serve” output but it shows that all is working and there are no errors in your window console too… Ugh why did it disappear? Well its most likely because of the below reasons!

You did not set the directives you need to use in the @Component decorator!

Solution:

  • Always remember to set the directives that you need to use in the @Component decorator if not the tag in the template wont work!
  • Check if the tag u selected in the selector is correct
  • Note that: The template will just “fail silently” with no warnings or errors shown if the above is not done!

Hello there! Thanks so much for reading this article! If you have any problems, do leave a comment below for us, and if you are interested in learning more, read more in our second article of our AngularDart series, here :)

--

--

J’aime l’œuf
Blood Engineering

Writing down that constant flow of inspirations in my mind ☺️