【发布时间】:2018-02-19 23:59:28
【问题描述】:
我正在尝试更新我的 node_modules 文件夹中的 html,但当我更改时它没有得到更新。 node_modules中的文件不能更新吗?
我有一个导入弹出模块的项目
import {PopupModule} from 'ng2-opd-popup';
我需要能够更改此文件夹路径中存在的代码 (/node_modules/ng2-opd-popup/components/popup/popup.component.html)
div id="ng2-opd-popup-main" *ngIf="visible" [ngClass]="mainClass" [ngStyle]="mainStyle">
<div class="row">
<div style="display: inline-block;width:100%">
<div id="ng2-opd-popup-well" [ngStyle]="wellStyle" class="ng2-opd-popup-well ng2-opd-popup-well-sm">{{popupService.options.header}}</div>
</div>
<div style="margin:20px;">
<ng-content></ng-content>
<div *ngIf="popupService.options.showButtons" style="margin-bottom:20px;margin-top:20px;float: right">
<div *ngIf="popupService.options.showConfirm">
<button id="confirmBtn" [ngClass]="confirmBtnStyle" (click)="confirmYes()">{{popupService.options.confirmBtnContent}}</button>
</div>
<div *ngIf="popupService.options.showCancel">
<button id="cancelBtn" [ngClass]="cancelBtnStyle" type="reset" (click)="confirmNo()">{{popupService.options.cancelBtnContent}}</button>
</div>
</div>
</div>
假设我想完全取出取消按钮。当我更改它并从我的项目中保存它时,即使更改了 html,它也不会更新。
【问题讨论】:
-
好吧,我真的很茫然。我要更改的软件包是位于此处的 ng2-opd-popup。 npmjs.com/package/ng2-opd-popup 我可以进入 node_modules > components > popup 文件夹并修改 html 但更改未更新。 git 位置只显示一个示例项目,而不是实际的节点模块。这只能通过 NPM 安装和查看
标签: angular node-modules