Avoid angularjs template GET if no done in AJAX