@wilfredonoyola, when all the code from your app is transformed from typescript to javascript there’s no guarantee that components will retain the same name.

Its possible that you can guarantee they will NOT retain the same name, but I’m not versed enough in the process to say. Either way, using a reference to ‘LoginPage’ could or will end up referencing nothing, because it’s now (hypothetically) components[1] and has no name or has been renamed to ‘component_loginpage’, ‘c_1a’, etc…

Components actually stop being components at that time and are (if I understand the process to a decent degree) turned into javascript variables / IIFE’s

var LoginPage = (function(alertController, loginProvider))();

That’s a guess as to how it looks but should give you an idea of how unreliable direct references to a component are in the end.