add a main directive in component.json