[英]Angular ng-view with sticky headers not working
我正在嘗試使用來自http://ngmodules.org/modules/sticky-headers的sticky headers指令,但它似乎不適用於使用ng-view的組合。
當按要求使用fsm指令時,我得到一個空視圖:
angular.module('dashboard', ['fsm']).controller('installerController',
[ '$scope', '$filter','$http','$log', '$location','$compile',
'$routeParams',
function($scope, $filter, $http, $log, $location, $compile, $routeParams)
如果不包括fsm指令,則一切正常:
angular.module('dashboard').controller('installerController',
[ '$scope', '$filter','$http','$log', '$location','$compile',
'$routeParams',
function($scope, $filter, $http, $log, $location, $compile, $routeParams)
非常感謝您的幫助。 謝謝。
angular.module(string)
和angular.module(string, array[])
方法之間的區別在於,第一個加載特定模塊,第二個創建新的角度模塊
確保只創建一次模塊
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.