chore(nav): more nav docs

This commit is contained in:
Tim Lancina
2015-10-02 19:45:54 -05:00
parent 5b0eda5be1
commit 539edf8ebd
3 changed files with 114 additions and 9 deletions

View File

@ -26,7 +26,6 @@ import {
* template.
*/
export const IONIC_DIRECTIVES = [
// TODO: Why is forwardRef() required when they're already imported above????
// Angular
CORE_DIRECTIVES,
FORM_DIRECTIVES,
@ -94,6 +93,9 @@ export const IONIC_DIRECTIVES = [
forwardRef(() => HideWhen)
];
/**
* @private
*/
class IonicViewImpl extends View {
constructor(args = {}) {
args.directives = (args.directives || []).concat(IONIC_DIRECTIVES);
@ -102,7 +104,13 @@ class IonicViewImpl extends View {
}
/**
* TODO
* the IonicView decorator indicates that the decorated class is an Ionic
* navigation view, meaning it can be navigated to using a [NavController](../../Nav/NavController/)
*
* Ionic views are automatically wrapped in `<ion-view>`, so although you may
* see these tags if you inspect your markup, you don't need to include them in
* your templates.
*
*/
export function IonicView(args) {
return function(cls) {