Mat API app rewritten in angular