This does not answer the question directly, but I want to suggest a method where you can have a different view using (almost) the same component.
I usually make another component, and let it extend the base component in order to re-use the same functionality.
//base component with functionality
@Component({
selector: 'page-sample',
templateUrl: 'sample.html',
providers: []
})
export class BaseComponent{
}
Create a new component that extends BaseComponent
, but can use a different view.
// another component with a different view.
@Component({
selector: 'another-page-sample',
templateUrl: 'another-sample.html',
providers: []
})
export class AnotherComponent extends BaseComponent{
}