开发者社区> 问答> 正文

求问关于angularjs1.2.9的minErr()报错的问题

环境:

os x: 10.10

chrome:35

angularjs:1.2.9

jquery:1.11.1

bootstrap:3.2

后端PHP的CI框架

页面内容:

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <base href="<?php echo base_url(); ?>">
    <title>test</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
 
    <!-- Le styles -->
    <link rel="stylesheet" href="static/css/bootstrap.css" >
    <link rel="stylesheet" href="static/css/font-awesome.css" />
    <style>
      body {
        padding-top: 60px; /* 60px to make the container go all the way to the bottom of the topbar */
      }
    </style>
    <link href="static/css/bootstrap-responsive.css" rel="stylesheet">
 
    <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
 
    <script>
      var BASE_URL = "<?php echo site_url().'/'; ?>";
    </script>
 
  </head>
 
  <body>
 
    <div class="navbar navbar-inverse navbar-fixed-top">
      <div class="navbar-inner">
        <div class="container">
          <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </a>
          <a class="navbar-brand" href="<?php echo site_url('projects#/'); ?>">test</a>
        </div>
      </div>
    </div>
 
    <div class="container">
 
      <div ng-app="project">
         
        <div class="page-header">
          <h1>test</h1>
        </div>
 
        <div ng-view></div>
 
      </div>
 
    </div> <!-- /container -->
 
    <!-- Le javascript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="static/js/jquery-1.11.1.min.js"></script>
    <script src="static/js/angular.js"></script>
    <script src="static/js/angular-resource.js"></script>
    <script src="static/js/bootstrap.min.js"></script>
    <script src="static/js/scripts.js"></script>
 
  </body>
</html>

screenshot

展开
收起
a123456678 2016-07-12 14:09:47 2702 0
1 条回答
写回答
取消 提交回答
  • 需要引入

    angular-route.js

    然后

    angular.module('project', ['ngRoute'])

    2019-07-17 19:54:52
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
Angular从零到一 立即下载
低代码开发师(初级)实战教程 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载