Button in TopBar

I´m able to implement a button with this code:

> 
>    var div3 = $('<div/>');
>         var button = document.createElement("BUTTON");
>         var b = document.createTextNode("Home")
>         button.appendChild(b);
>         //button.ng-click="send({payload:'1'})";
>         div3.append(button);

but the ng-click option doesn´t work

button_inTopBar