Sharing Top Content from the Angular-sphere.

[SOLVED] What are the undocumented features of Angular?- Angular.js Recipes

  • Angular.js Recipes are structured in a Cookbook format featuring recipes that contain problem statements and solutions.
  • A detailed explanation follows each problem statement of the recipe.
  • Angular.js is a JavaScript-based open-source front-end web application framework mainly maintained by Google and by a community of individuals and corporations to address many of the challenges encountered in developing single-page applications.
  • The JavaScript components complement Apache Cordova, the framework used for developing cross-platform mobile apps.
  • It aims to simplify both the development and the testing of such applications by providing a framework for client-side model–view–controller (MVC) and model–view–viewmodel (MVVM) architectures, along with components commonly used in rich Internet applications.

Angular 1.0.5 and 1.0.4:

Scope has two useful undocumented properties:

$parent – can be used as a hack for binding to a primitive property in a parent scope – example
$$phase – can be used to determine if a $digest is already in progress – see this SO answer

ng-switch has an undocumented change parameter that accepts an expression (example plnkr)
select has an undocumented ng-change parameter that accepts an expression
Attributes has an undocumented $observe method (although it is mentioned on the Directives page)
$cacheFactory has two undocumented methods (example fiddle)

get()
info()

the $location service has two undocumented events

$locationChangeStart(evt, newUrl, oldUrl) (example)
$locationChangeSuccess(evt, newUrl, oldUrl) (see also What's the difference between $locationChangeSuccess and $locationChangeStart?)

use ng-value (undocumented) with input type=”radio”, see Disqus comment in API docs


@angular_recipe: What are the undocumented features of Angular? #Angular #AngularJS

Angular 1.0.5 and 1.0.4:

Angular.js Recipes are structured in a Cookbook format featuring recipes that contain problem statements and solutions. A detailed explanation follows each problem statement of the recipe. This is usually contained within the solution; however, an optional discussion section can often contain other useful information helping to demonstrate how the solution works.

Angular.js is a JavaScript-based open-source front-end web application framework mainly maintained by Google and by a community of individuals and corporations to address many of the challenges encountered in developing single-page applications. The JavaScript components complement Apache Cordova, the framework used for developing cross-platform mobile apps. It aims to simplify both the development and the testing of such applications by providing a framework for client-side model–view–controller (MVC) and model–view–viewmodel (MVVM) architectures, along with components commonly used in rich Internet applications.

Lost? Begin by working through Angular’s Getting Started Guide to get yourself up-and-running.

[SOLVED] What are the undocumented features of Angular?- Angular.js Recipes

Comments are closed, but trackbacks and pingbacks are open.