小编bou*_*pat的帖子

ngAnimate对象未设置为函数

我在使用ngAnimate和ui-view时遇到错误.上载或单击任何导航菜单; angular-animate.js生成'对象不是函数'错误.

这里是主要的javacsript应用程序:

(function () {
'use strict';
var app = angular.module("pie", ['ui.router', 'uiGmapgoogle-maps', 'ui.bootstrap', 'ngAnimate']);

app.config(["$stateProvider", "$locationProvider", "$urlRouterProvider",
function ($stateProvider, $locationProvider, $urlRouterProvider) {

    $locationProvider.html5Mode({ enabled: true, requireBase: false });

    $urlRouterProvider.otherwise('/Welcome');
    $stateProvider
        .state("Welcome", {
            url: "/Welcome",
            templateUrl: "../Scripts/Home/WelcomeView.html",
            controller: "WelcomeController"
        })
        .state("About", {
            url: "/About",
            templateUrl: "../Scripts/Home/AboutView.html",
            controller: "AboutController"
        })
        .state("Contact", {
            url: "/Contact",
            templateUrl: "../Scripts/Home/ContactView.html",
            controller: "ContactController"
        })
        .state("Login", {
            url: "/Account/Login"
        })
        .state("Register", {
            url: "/Account/Register"
        })
        .state("ForgotPassword", {
            url: "/Account/ForgotPassword"
        });
}]);

//app.animation('.view-animation', function () {
// …
Run Code Online (Sandbox Code Playgroud)

angularjs angular-ui-router

2
推荐指数
1
解决办法
1947
查看次数

使用sort方法编译Java错误

我遇到了这个错误:无法找到符号 - 方法排序(java.util.ArrayList)

我正在尝试对ArrayList进行排序并打印它.

这是代码,我也覆盖了HockeyPlayer,Professor,Parent和GasStation类中的compareTo方法.谢谢.P

import java.util.ArrayList;
import java.util.Iterator;
import java.util.Collections;
/**
 * Class Employees.
 */
public class Employees
{
    private ArrayList<Employee> employeeList;

    /**
     * Constructor for objects of class Employees
     */
    public Employees()
    {
        employeeList = new ArrayList<Employee>();
        //Creating 5 each types of Employees
        employeeList.add(new HockeyPlayer("Wayne Gretzky", 894));
        employeeList.add(new HockeyPlayer("Who Ever", 0));
        employeeList.add(new HockeyPlayer("Brent Gretzky", 1));
        employeeList.add(new HockeyPlayer("Pavel Bure", 437));
        employeeList.add(new HockeyPlayer("Jason Harrison", 0));

        employeeList.add(new Professor("Albert Einstein", "Physics"));
        employeeList.add(new Professor("Jason Harrison", "Computer Systems"));
        employeeList.add(new Professor("Richard Feynman", "Physics"));
        employeeList.add(new Professor("BCIT …
Run Code Online (Sandbox Code Playgroud)

java sorting

0
推荐指数
1
解决办法
913
查看次数

标签 统计

angular-ui-router ×1

angularjs ×1

java ×1

sorting ×1