That is , in fact So So simple, just declare in Main your turtle , scope propagation to the directive is simplify everything