diff --git a/ionic/animations/animation.ts b/ionic/animations/animation.ts index cbdb5c8077..7d053f956d 100644 --- a/ionic/animations/animation.ts +++ b/ionic/animations/animation.ts @@ -5,23 +5,27 @@ import {extend} from '../util/util'; /** Animation Steps/Process ----------------------- - 1) Construct animation (doesn't start) - 2) Client play()'s animation, returns promise - 3) Add before classes to elements - 4) Remove before classes from elements - 5) Elements staged in "from" effect w/ inline styles - 6) Call onReady() - 7) Wait for RENDER_DELAY milliseconds (give browser time to render) - 8) Call onPlay() - 8) Run from/to animation on elements - 9) Animations finish async - 10) Set inline styles w/ the "to" effects on elements - 11) Add after classes to elements - 12) Remove after classes from elements - 13) Call onFinish() - 14) Resolve play()'s promise + + - Construct animation (doesn't start) + - Client play()'s animation, returns promise + - Add before classes to elements + - Remove before classes from elements + - Elements staged in "from" effect w/ inline styles + - Call onReady() + - Wait for RENDER_DELAY milliseconds (give browser time to render) + - Call onPlay() + - Run from/to animation on elements + - Animations finish async + - Set inline styles w/ the "to" effects on elements + - Add after classes to elements + - Remove after classes from elements + - Call onFinish() + - Resolve play()'s promise **/ +/** + * @private +**/ export class Animation { constructor(ele, opts={}) { @@ -554,6 +558,9 @@ export class Animation { } +/** + * @private +**/ class Animate { constructor(ele, fromEffect, toEffect, duration, easingConfig, playbackRate) { diff --git a/ionic/components/action-sheet/action-sheet.ts b/ionic/components/action-sheet/action-sheet.ts index 4a838b0450..1a122600c0 100644 --- a/ionic/components/action-sheet/action-sheet.ts +++ b/ionic/components/action-sheet/action-sheet.ts @@ -1,10 +1,3 @@ -/** -* @ngdoc service -* @name ActionSheet -* @module ionic -* @description -* The ActionSheet is a modal menu with options to select based on an action. -*/ import {Component, Injectable, Renderer} from 'angular2/core'; import {NgFor, NgIf} from 'angular2/common'; diff --git a/ionic/config/decorators/app.ts b/ionic/config/decorators/app.ts index e30ab8776b..09c2a3dfdf 100644 --- a/ionic/config/decorators/app.ts +++ b/ionic/config/decorators/app.ts @@ -5,14 +5,28 @@ import {ionicProviders} from '../bootstrap'; import {IONIC_DIRECTIVES} from '../directives'; /** -* @ngdoc service * @name App -* @module ionic -* @param {object} [config] - the app's [../Config](Config) object -* @param {string} [template] - the template to use for the app root -* @param {string} [templateUrl] - a relative URL pointing to the template to use for the app root * @description * App is an Ionic decorator that bootstraps an application. It can be passed a number of arguments, that act as global config variables for the app. +* App can accept a `template` property that has an inline template or a `templateUrl` property that points to an external html template. +* +* @usage +* ```ts +* import {App} from 'ionic/ionic'; +* +* @App({ +* templateUrl: 'app/app.html' +* }) +* +* export class MyApp{ +* +* } +* ``` +* +* @param {Object} [config] - the app's [../Config](Config) object +* @param {String} [template] - the template to use for the app root +* @param {String} [templateUrl] - a relative URL pointing to the template to use for the app root +* */ export function App(args={}) { diff --git a/scripts/docs/templates/common.template.html b/scripts/docs/templates/common.template.html index 38fb11d552..1e97d0e997 100644 --- a/scripts/docs/templates/common.template.html +++ b/scripts/docs/templates/common.template.html @@ -27,7 +27,7 @@ angular_controller: APIDemoCtrl <@ endif @> <$ doc.fileInfo.relativePath $> (line <$ doc.location.start.line+1 $>) <@- endmacro -@> -<@ macro paramTable(params, isDirective) @> +<@ macro paramTable(params, isDirective) -@> @@ -55,16 +55,17 @@ angular_controller: APIDemoCtrl <@ endif @> <@ endfor @>
-<@ endmacro @> +<@- endmacro -@> <@- macro functionSyntax(fn) @> -<@- set sep = joiner(', ') -@> -<$ fn.name $>(<@- for param in fn.params @><$ sep() $> + <@- set sep = joiner(', ') -@> + <$ fn.name $>(<@- for param in fn.params @><$ sep() $> <@- if param.type.optional @>[<@ endif -@> <$ param.name $> <@- if param.type.optional @>]<@ endif -@> - <@ endfor @>)<@ if fn.alias @>(alias: <$ fn.alias $>)<@ endif @> + <@ endfor @>) + <@ if fn.alias @>(alias: <$ fn.alias $>)<@ endif @> <@ endmacro -@> <@ macro typeList(types) -@> @@ -73,30 +74,29 @@ angular_controller: APIDemoCtrl <@ endif @> <@- endmacro -@> <@- macro typeInfo(fn) -@> -<$ typeList(fn.typeList) $> <$ fn.description $> + <$ typeList(fn.typeList) $> <$ fn.description $> <@- endmacro -@> <@ block body @>
- - View Source - -   - - Improve this doc - - + +View Source + +  + +Improve this doc +
<@ block content @> <@ block header @> +

<@ if doc.docType == "directive" @> <$ doc.name | dashCase $> - <@ else @> <$ doc.name $> <@ endif @> @@ -124,6 +124,7 @@ Delegate: <$ doc.delegate $> <@ endblock @> +

Description

<@ block description @> <$ doc.description | marked $> @@ -135,7 +136,7 @@ Delegate: <$ doc.delegate $>

<$ doc.directiveInfo.properties[0].name $>: <$ doc.directiveInfo.properties[0].values $>

<@ endif -@> - + <@ if doc.usage @>

Usage

<@ block usage @> @@ -143,7 +144,7 @@ Delegate: <$ doc.delegate $> <@ endblock @> <@ endif @> - + <@ if doc.properties @>

Attributes:

@@ -186,6 +187,7 @@ Delegate: <$ doc.delegate $>
<@ endif @> + <@- if doc.members and doc.members.length @>

Methods

@@ -217,10 +219,7 @@ Delegate: <$ doc.delegate $> <@- endif -@> - - - - + <@- if doc.see @>

Related