$compile compiles DOM into a template function that can then be used to link scope and the View together