Where can I initialize module-wide variables?

前端 未结 0 1648
既然无缘
既然无缘 2021-02-13 08:37

I\'m trying to do something like this:

angular.module(\'MyModule\', [\'ui\'])
    .config(function($rootScope) {
        $rootScope.Gender = {
            \'M\':         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题