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.

+3
inheritance angular typescript components node-modules


source to share


No one has answered this question yet

Check out similar questions:

1544
How can I upgrade NodeJS and NPM to the next versions?
1270
Why not inherit from List <T>?
782
How do I install an npm package from GitHub directly?
407
How do I use a package installed locally in node_modules?
304
JSP tricks to make templating easier?
192
Angular 2 @ViewChild annotation returns undefined
175
How can I use / create a dynamic template to compile a dynamic component with Angular 2.0?
121
How do I extend / inherit components?
8
Replace / extend third party component template
1
Angular Cli- In StyleURL add css file located in node_module directory



All Articles
Loading...
X
Show
Funny
Dev
Pics