【发布时间】:2015-08-14 18:55:02
【问题描述】:
我已经实现了一个我遇到这个问题的代码。 问题 1:- 未捕获的 ReferenceError:未定义角度 问题 2:-未捕获的错误:没有模块:CustomerSearch
我已经编写了我的代码:-
这是我的查看页面
<view>
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="QuickSearch.ascx.cs" Inherits="CustomerSearch.QuickSearch1" %>
<!DOCTYPE html>
<%@ Register TagPrefix="dnn" Namespace="DotNetNuke.Web.Client.ClientResourceManagement" Assembly="DotNetNuke.Web.Client" %>
<html >
<head id="Head1" >
<script src ="http://code.jquery.com/jquery-latest.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.8/angular.min.js"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
<dnn:DnnJsInclude runat="server" FilePath="~/Portals/_default/Customer.Search/Contoller/QuickSearchController.js" />
<dnn:DnnJsInclude runat="server" FilePath="~/Portals/_default/Customer.Search/Interface/module.js" />
<%-- <dnn:DnnJsInclude runat="server" FilePath="~/Portals/_default/Customer.Search/app.routes.js" />--%>
<title></title>
<script type="text/javascript">
</script>
</head>
<body ng-app="CustomerSearch">
<form id="form1" >
<div>
<div id="page" ng-controller="CustomerCtrl as custom">
<div id="menuleftcontent">
<table>
<tr id="menu">
<td width="25px !important;"><input type="text" id="txtActId" value="Search" class="tftextinput2" ng-model="search.txtActId" /> </td>
<td><input type="button" value="Search" class="tfbutton2" data-ng-click="search(search)" /> </td>
</tr>
<tr id="TableRow1">
<td colspan="2">
<asp:DropDownList ID="listCustomerType" runat="server" CssClass="dropdown" Width="194px" Height="27px" ng-model="search.listCustomerType">
</asp:DropDownList>
</td>
</tr>
<tr>
<td colspan="2">
<input type="checkbox" id="checkActiveOnly" class="NormalTextBox" value="Active Customers Only" ng-model="search.checkActiveOnly" />Active Customers Only
<br>
<input type="checkbox" id="checkParentsOnly" class="NormalTextBox" value="Parent Accounts Only" ng-model="search.checkParentsOnly" />Parent Accounts Only
</td>
</tr>
</table>
<div >
<div>
<div>
【问题讨论】:
-
尝试在
angular.js文件之后移动module.js -
@pankajparkar 代码已编辑,通过新代码
-
@RadimKöhler 不仅这个错误一次又一次地发生,并且得到任何可以帮助我的答案。无法找到我错的地方
-
@Mico,真的很想帮忙,但我不确定我是否可以。无论如何,我试图展示我们如何面对一些问题,错误,与 plunkers ......希望它会给至少有一些见解......
-
又收到一个 No module: ngRoute 错误
标签: angularjs typescript