WOW: it's very important to know about the race condition in the link function of a directive http://stackoverflow.com/questions/14552024/angularjs-logging-scope-property-in-directive-link-function-displays-undefined

got measure directive working