understanding template compiling in angularjs post