Custom directive to controller, custom button

Hello every body im coming with somes questions :smile:

  1. I’ve created custom directive (for test )
    it’s contain two input text : name and surname
    So this directive is a part of a big form , and i would like binding this two input into my formcontroller
    my directive use a templateUrl which contain that :

Can you help me?

  1. With some view (like edit member) i would like to add a valid button on my header bar how can i perform that ?

Thank and again sorry for my bad english
Have a nice day !!