Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(tabs): make non-exported comps as docs private #3510

Merged
merged 1 commit into from
Mar 9, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 20 additions & 3 deletions src/lib/tabs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,26 @@ import {SCROLL_DISPATCHER_PROVIDER} from '../core/overlay/scroll/scroll-dispatch
@NgModule({
imports: [CommonModule, PortalModule, MdRippleModule, ObserveContentModule],
// Don't export all components because some are only to be used internally.
exports: [MdTabGroup, MdTabLabel, MdTab, MdTabNavBar, MdTabLink, MdTabLinkRipple],
declarations: [MdTabGroup, MdTabLabel, MdTab, MdInkBar, MdTabLabelWrapper,
MdTabNavBar, MdTabLink, MdTabBody, MdTabLinkRipple, MdTabHeader],
exports: [
MdTabGroup,
MdTabLabel,
MdTab,
MdTabNavBar,
MdTabLink,
MdTabLinkRipple
],
declarations: [
MdTabGroup,
MdTabLabel,
MdTab,
MdInkBar,
MdTabLabelWrapper,
MdTabNavBar,
MdTabLink,
MdTabBody,
MdTabLinkRipple,
MdTabHeader
],
providers: [VIEWPORT_RULER_PROVIDER, SCROLL_DISPATCHER_PROVIDER],
})
export class MdTabsModule {
Expand Down
5 changes: 4 additions & 1 deletion src/lib/tabs/ink-bar.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import {Directive, Renderer, ElementRef} from '@angular/core';


/** The ink-bar is used to display and animate the line underneath the current active tab label. */
/**
* The ink-bar is used to display and animate the line underneath the current active tab label.
* @docs-private
*/
@Directive({
selector: 'md-ink-bar, mat-ink-bar',
host: {
Expand Down
1 change: 1 addition & 0 deletions src/lib/tabs/tab-body.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export type MdTabBodyOriginState = 'left' | 'right';

/**
* Wrapper for the contents of a tab.
* @docs-private
*/
@Component({
moduleId: module.id,
Expand Down
1 change: 1 addition & 0 deletions src/lib/tabs/tab-header.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ const EXAGGERATED_OVERSCROLL = 60;
* an ink bar that follows the currently selected tab. When the tabs list's width exceeds the
* width of the header container, then arrows will be displayed to allow the user to scroll
* left and right across the header.
* @docs-private
*/
@Component({
moduleId: module.id,
Expand Down
5 changes: 4 additions & 1 deletion src/lib/tabs/tab-label-wrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ import {Directive, ElementRef, Renderer, Input} from '@angular/core';
import {coerceBooleanProperty} from '../core/coercion/boolean-property';


/** Used in the `md-tab-group` view to display tab labels */
/**
* Used in the `md-tab-group` view to display tab labels.
* @docs-private
*/
@Directive({
selector: '[md-tab-label-wrapper], [mat-tab-label-wrapper]',
host: {
Expand Down