How to override / change the "node_module" package template?
I am working with angular2 project. And I have some components (like header, footer, etc.) that I want to reuse in another project with some changes. for this I created node packages and imported these packages into a new project. But my problem is that I want to make some changes to suit the new project in the inline node package template. I found a way to change the css but couldn't change the content of the template.
Here is the component code that extends the node package
about.component.ts
import {Component , ViewChild, Input} from '@angular/core';
import { Router } from '@angular/router';
import { FaqComponent } from 'FaqComponent';
@Component({
selector: 'about',
styleUrls: [ './about.component.scss' ],
templateUrl: './about.component.html'
})
export class AboutComponent extends FaqComponent {}
here, FaqComponent is a node package. and as the component expands, the FaqComponent templates override the AboutComponent template. and I want to apply changes to the template of this FaqComponent.
How can i do this? Is there anyway? Any help would be greatly appreciated.
source to share
No one has answered this question yet
Check out similar questions: