Integrate sample use of scope with directives for passing data to templates