Europace - behind the scenes
  • Home
  • Impressum
  • Datenschutz

functions

Einblicke, Gedanken, Ideen, Veranstaltungen unserer Kollegen, die Europace entwickeln

angularjs

Passing Functions to AngularJS Directives

I recently built a custom directive that needed to call a function in its parent scope and pass some interal variables back as arguments. To be more specific: an editable label – a simple text that turns into an input field when it’s clicked and turns back into plain text, when the focus leaves the input field. On top of that, I needed it to invoke a callback function, if – and only if – the value of the input field has actually been changed.

  • Daniel Bechler
Daniel Bechler 6 November 2013 • 4 min read
Europace - behind the scenes © 2013
Latest Posts Twitter Hugo Casper3 by Jonathan Janssens