我嘗試使用角度帶的工具提示時遇到此錯誤。任何想法爲什麼會發生以及如何解決它?404找不到角度帶
GET http://localhost:3000/tooltip/tooltip.tpl.html 404 (Not Found)
我的代碼看起來像;
var initTooltipAge = function() {
// Tooltip Validation workaround https://github.com/mgcrea/angular-strap/issues/106
var inputAge = document.getElementById('input-age');
if (inputAge) {
var tooltipAge = this.$tooltip(angular.element(inputAge), {
title: "blabla",
placement: 'top',
trigger: 'manual',
style: 'alert'
});
}
爲什麼你自己操縱DOM和不使用角度指令呢? – charlietfl