Skip to content
This repository was archived by the owner on Dec 18, 2024. It is now read-only.

Add doc-viewer component #17

Merged
merged 8 commits into from
Dec 13, 2016
Merged

Add doc-viewer component #17

merged 8 commits into from
Dec 13, 2016

Conversation

mmalerba
Copy link
Collaborator

No description provided.

Copy link
Contributor

@tinayuangao tinayuangao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -2,3 +2,4 @@
<img src="../../../assets/img/components/{{component.src}}.svg" [alt]="component.name" />
{{component.name}}
</div>
<doc-viewer documentUrl="/assets/documents/README.html"></doc-viewer>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: I think we usually use document-url and use @Input('document-url') in typeScript file

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's what I had originally, but @jelbourn suggested I change it to this

error => {
console.log(error);
this._elementRef.nativeElement.innerText =
`Failed to load document: ${url}. Error: ${error}`;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

very nit: indent

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@mmalerba
Copy link
Collaborator Author

@jelbourn @tinayuangao is src/app/shared going to be the official home of our components?

@jelbourn
Copy link
Member

@mmalerba shared/ is fine for now, I suppose. I hadn't been paying attention to where the components lived.

@mmalerba
Copy link
Collaborator Author

mmalerba commented Dec 12, 2016

tests working (though I wasn't able to tests for the ExampleViewer. I tried By.directive(ExampleViewer) but it kept returning null, I assume because of PortalHost/Portal shenanigans).

@jelbourn
Copy link
Member

LGTM, just needs rebase

@mmalerba mmalerba merged commit 4e993c5 into angular:master Dec 13, 2016
@mmalerba mmalerba deleted the docviewer branch December 13, 2016 21:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants