我尝试使用角度带的工具提示时遇到此错误。任何想法为什么会发生以及如何解决它?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