Updated the router-port element to use the latest TemplateDirective apis.