나는 NG2 - 부트 스트랩 툴팁 구성 요소를 사용하려고 노력하지만, 때마다 내가 얻을가져 오기 NG2 - 부트 스트랩 (NG2 RC2 - bootstrap3)
GET HTTP : /example.com/node_modules/ng2-bootstrap/ng2 (찾을 수 없음) -bootstrap (404)는
나는 시도 :
import {TOOLTIP_DIRECTIVES} from '../../../ng2-bootstrap';
import {TOOLTIP_DIRECTIVES} from 'node_modules/ng2-bootstrap/ng2-bootstrap';
import {TOOLTIP_DIRECTIVES} from 'ng2-bootstrap/ng2-bootstrap';
에서 SystemJS의 설정과 마지막 하나 내가 1.0.17 NG2 - 부트 스트랩 Angular2 RC2를 사용하고 3.3.6 부트 스트랩
import {Component, Input} from '@angular/core';
import {CORE_DIRECTIVES, FORM_DIRECTIVES} from '@angular/common';
import {TOOLTIP_DIRECTIVES} from 'ng2-bootstrap/ng2-bootstrap';
@Component({
selector: 'check-type',
templateUrl: 'app/task/overview/check-type/check-type.html',
directives: [TOOLTIP_DIRECTIVES, CORE_DIRECTIVES, FORM_DIRECTIVES],
changeDetection: ChangeDetectionStrategy.OnPush
})
export class CheckType {
public mytooltip:string = "My Tooltip";
}
: 같은
map {
...
'ng2-bootstrap/ng2-bootstrap': 'node_modules/ng2-bootstrap/ng2-bootstrap',
...
}
내 구성 요소가 보인다. 체크 - 인덱스 HTML 검사에서 NG2 - bootstrap.min.js -
ng2-bootstrap이 ngx-bootstrap으로 이름이 변경되었습니다. – valorkin