Replace Deprecated Angular Componentfactoryresolver Componentfactory

Replace Deprecated Angular Componentfactoryresolver Componentfactory