[英]Angular ng-view with sticky headers not working
I'm trying to use the sticky headers directive from: http://ngmodules.org/modules/sticky-headers but it doesn't seem to work with the combination of using ng-view. 我正在尝试使用来自http://ngmodules.org/modules/sticky-headers的sticky headers指令,但它似乎不适用于使用ng-view的组合。
When using the fsm directive as required, I'm getting an empty view: 当按要求使用fsm指令时,我得到一个空视图:
angular.module('dashboard', ['fsm']).controller('installerController',
[ '$scope', '$filter','$http','$log', '$location','$compile',
'$routeParams',
function($scope, $filter, $http, $log, $location, $compile, $routeParams)
When not including the fsm directive, everything works fine: 如果不包括fsm指令,则一切正常:
angular.module('dashboard').controller('installerController',
[ '$scope', '$filter','$http','$log', '$location','$compile',
'$routeParams',
function($scope, $filter, $http, $log, $location, $compile, $routeParams)
Your help is much appreciated. 非常感谢您的帮助。 Thanks. 谢谢。
The difference between the method angular.module(string)
and angular.module(string, array[])
is that the first one loads a specific module and the second one creates a new angular module angular.module(string)
和angular.module(string, array[])
方法之间的区别在于,第一个加载特定模块,第二个创建新的角度模块
Make sure that you only create your module once 确保只创建一次模块
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.