how to call a function from module dependency (another module)

前端 未结 3 1112
不思量自难忘°
不思量自难忘° 2021-01-21 16:57

I want to create seperate module for pagination, because I will need it to reuse in different modules, but I don\'t know how to call a function from module dependency (another m

3条回答
  •  执笔经年
    2021-01-21 17:03

    You can't inject a controller in a controller. Your pagination module need to declare a service or factory or provider wich will be be injected in your controller.

    See docs here.

提交回复
热议问题