[英]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.