docs(label): make inputs private

This commit is contained in:
mhartington
2016-02-01 15:39:36 -05:00
parent 276b509c9a
commit 860dd672b1

View File

@ -50,6 +50,9 @@ import {Directive, ElementRef, Renderer, Input, Optional, Attribute} from 'angul
export class Label { export class Label {
private _id: string; private _id: string;
/**
* @private
*/
type: string; type: string;
constructor( constructor(
@ -63,6 +66,9 @@ export class Label {
this.type = (isFloating === '' ? 'floating' : (isStacked === '' ? 'stacked' : (isFixed === '' ? 'fixed' : (isInset === '' ? 'inset' : null)))); this.type = (isFloating === '' ? 'floating' : (isStacked === '' ? 'stacked' : (isFixed === '' ? 'fixed' : (isInset === '' ? 'inset' : null))));
} }
/**
* @private
*/
@Input() @Input()
get id(): string { get id(): string {
return this._id; return this._id;
@ -75,6 +81,9 @@ export class Label {
} }
} }
/**
* @private
*/
get text(): string { get text(): string {
return this._elementRef.nativeElement.textContent || ''; return this._elementRef.nativeElement.textContent || '';
} }