ngroute

    1熱度

    1回答

    我只是將ngMock包含到我的項目中,因爲我需要$ httpBackend。我有一幫業報/茉莉測試設置的,幷包括ngMock後,一切都因爲它會導致錯誤的突破: PhantomJS 1.9.7 (Windows 7): Executed 0 of 41 SUCCESS (0 secs/0 secs) PhantomJS 1.9.7 (Windows 7) ERROR Error: Une

    0熱度

    1回答

    我想一個AngularJS Web應用程序轉換爲一個多設備應用程序。 在我使用的ngRoute的Web應用程序。 基本上是這樣的 app.config(['$routeProvider',function ($routeProvider) { $routeProvider .when('/Home', { controller: 'homeCtr',

    2熱度

    1回答

    我正在使用「帳戶」控制器處理遺留的.NET MVC項目。 它有一些我不想惹的事 - 例如, Account/Login,Account/ManageProfile。 路線Account/沒有被處理(不知道這是有用的信息) 我的目標是讓AngularJS處理在一個角應用的註冊和ForgotPassword行動。 目前,我已經爲註冊表設置了一切,帳戶控制器中有一個操作: [AllowAnonymous

    0熱度

    1回答

    我獲取從JSON文件中的數據檢索使用factory: appService.factory('svr', ['$resource', function($resource) { return $resource('data/:pageName.json', {}, {query:{method:'GET', isArray:true}}); }]); 和訪問它controller:

    0熱度

    2回答

    我試圖配置一個基本的角度應用程序。 我的主HTML: <html ng-app="CostumerApp"> <head> <title> Costumers </title> <link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.css"/> </head> <body>

    2熱度

    1回答

    我在運行時第一次加載頁面時遇到問題。我認爲這是一個老問題,與這個issue有關。 你可以看到我的問題here。 奇怪的是,當我將模板放在單獨的文件中(而不是text/ng-template)時,動畫完美無缺地工作,您可以看到here。 由於我的應用程序將在文件URI方案上工作,我必須使用text/ng-template。 任何解決方法?我找不到合適的人。

    0熱度

    1回答

    我有一個基本的角度應用程序,它列出了一天中的事件。用戶可以通過點擊日曆來更改日期(angular-ui-calendar)。在我的控制器中,我有一個Date類型的「selectedDay」模型對象。 目前的應用網址: http://localhost/app#/daypicker 我已經配置ngroute到的 http://localhost/app#/daypicker/2015-02-15 這

    0熱度

    1回答

    我有一個路線 /hungry/hippo/nom-nom-nom 地圖很大。沒問題。 添加一個額外的斜槓 /hungry/hippo/nom-nom-nom/to-full-barf 後者沒有解決,我不明白爲什麼 .when('/hungry/hippo/nom-nom-nom/to-full-barf', { templateUrl: '/views/muyHungryHippo.h

    2熱度

    2回答

    閱讀api和開發指南後,我仍然不明白在給定路由中聲明'controller'所提供的功能。現在我只是在我的視圖中將我的控制器聲明爲ng-controller指令。 ngRoute是否只是提供一種替代方法? 要在代碼我的問題明確,見下圖: --Index.html ... <body ng-app="MyApp"> <div ng-view> </div> </body>

    1熱度

    1回答

    在Sample Angular App 例如,在一個obscure module of the app, there is a route,如: $routeProvider.when('/projectsinfo', { templateUrl:'projectsinfo/list.tpl.html', controller:'ProjectsInfoListCtrl',