code doc base in angularjs