update to angular 1.2.0 - template instead of compile function