How pass data to $mdDialog in angular material

前端 未结 3 1807
闹比i
闹比i 2020-12-20 19:08

I want to pass some data to $mdDialog. In fact, I have two controllers in a separate file. Here is my controller code

function openDialog(id) {
        $mdDi         


        
3条回答
  •  别那么骄傲
    2020-12-20 19:16

    I added ng-controller="ProfileController as profileController" in profile template and this was due to an error. By removing it my problem solved.

提交回复
热议问题