calling method of parent controller from a directive in AngularJS

Just simple change your html as below

<my-directive mandate-person="mandat.person" updateparent="updatePerson(person)" >

      </my-directive>

you are not passing “person” with updatePerson thats why it is not working

Leave a Comment