From a7e12b7959212f2fa88fe17d5a045cc9d8b22922 Mon Sep 17 00:00:00 2001 From: Matias Niemelä Date: Wed, 16 Oct 2013 22:48:32 -0400 Subject: feat(docs): provide index pages for each angular module --- docs/content/api/index.ngdoc | 286 ++++++++++++++++++++++++++++++++++++++++++- docs/content/api/ng.ngdoc | 5 +- 2 files changed, 287 insertions(+), 4 deletions(-) (limited to 'docs/content/api') diff --git a/docs/content/api/index.ngdoc b/docs/content/api/index.ngdoc index d0ab64e6..95e45e63 100644 --- a/docs/content/api/index.ngdoc +++ b/docs/content/api/index.ngdoc @@ -2,6 +2,286 @@ @name API Reference @description -Use the API Reference documentation when you need more information about a specific feature. Check out -{@link guide/ Developer Guide} for AngularJS concepts. If you are new to AngularJS we recommend the -{@link tutorial/ Tutorial}. +# AngularJS API Docs +Welcome to the AngularJS API docs page. The pages here contain the AngularJS reference materials for version . + +The docs are organized into **modules** which contain various components of an AngularJS application. +These components are directives, services, filters, providers, types, global APIs and testing mocks. + +## {@link ng ng (core module)} +This module is provided by default and contains the core components of AngularJS. + +
| {@link ng#directive Directives} | +
+ + This is the core collection of directives you would use in your template code to build an AngularJS application. + + +
+ Some examples include:
+ {@link ng.ngClick ngClick},
+ {@link ng.ngInclude ngInclude},
+ {@link ng.ngInclude ngRepeat},
+ etc… |
+
| + {@link ng#service Services / Factories} + | +
+ + This is the core collection of services which are used within the DI of your application. + ++ Some examples include: + {@link ng.$compile $compile}, + {@link ng.$http $http}, + {@link ng.$routeParams $routeParams}, + {@link ng.$location $location}, + etc… + + |
+
| + {@link ng#filter Filters} + | +
+ + The core filters available in the ng module are used to transform template data before it is renders within directives and expressions. + ++ Some examples include: + {@link ng.filter:filter filter}, + {@link ng.filter:date date}, + {@link ng.filter:currency currency}, + {@link ng.filter:lowercase lowercase}, + {@link ng.filter:uppercase uppercase}, + etc... + + |
+
| + {@link ng#function Global APIs} + | +
+ + The core global API functions are attached to the angular object. These core functions are useful for low level JavaScript operations within your application. + ++ Some examples include: + {@link angular.copy angular.copy()}, + {@link angular.equals angular.equals()}, + {@link angular.element angular.element()}, + etc... + + |
+
| + {@link ngRoute#service Services / Factories} + | +
+ The following services are used for route management:
+
|
+
| + {@link ngRoute#directive Directives} + | ++ The {@link ngRoute.directive:ngView ngView} directive will display the template of the current route within the page. + | +
| + {@link ngAnimate#service Services / Factories} + | ++ Use {@link ngAnimate.$animate $animate} to trigger animation operations within your directive code. + | +
| + {@link ngAnimate CSS-based animations} + | ++ Follow ngAnimate’s CSS naming structure to reference CSS transitions / keyframe animations in AngularJS. Once defined the animation can be triggered by referencing the CSS class within the HTML template code. + | +
| + {@link ngAnimate JS-based animations} + | ++ Use {@link angular.Module#animation module.animation()} to register a JavaScript animation. Once registered the animation can be triggered by referencing the CSS class within the HTML template code. + | +
| + {@link ngResource#service Services / Factories} + | ++ The {@link ngResource.$resource $resource} service is used to define RESTful objects which communicate with a REST API. + | +
| + {@link ngCookies#service Services / Factories} + | +
+ The following services are used for cookie management:
+
|
+
| + {@link ngTouch#service Services / Factories} + | ++ The {@link ngTouch.$swipe $swipe} service is used to register and manage mobile DOM events. + | +
| + {@link ngTouch#directive Directives} + | ++ Various directives are available in ngTouch to emulate mobile DOM events. + | +
| + {@link ngSanitize#service Services / Factories} + | ++ The {@link ngSanitize.$sanitize $sanitize} service is used to clean up dangerous HTML code in a quick and convenient way. + | +
| + {@link ngTouch#filter Filters} + | ++ The {@link ngSanitize.filter:linky linky filter} is used to turn URLs into HTML links within the provided string. + | +
| + {@link ngMock#service Services / Factories} + | +
+ + ngMock will extend the behavior of various core services to become testing aware and manageable in a synchronous manner. + + + + Some examples include: + {@link ngMock.$timeout $timeout}, + {@link ngMock.$interval $interval}, + {@link ngMock.$log $log}, + {@link ngMock.$httpBackend $httpBackend}, + etc... + + |
+
| + {@link ngMock#function Global APIs} + | +
+ + Various helper functions are available to inject and mock modules within unit test code. + + ++ Some examples + {@link angular.mock.inject inject()}, + {@link angular.mock.module module()}, + {@link angular.mock.dump dump()}, + etc... + + |
+