Skip to content

fix(docs): book component#715

Merged
SanderElias merged 5 commits intomainfrom
fix/landing-broken-links
Jul 14, 2020
Merged

fix(docs): book component#715
SanderElias merged 5 commits intomainfrom
fix/landing-broken-links

Conversation

@GuzmanPI
Copy link
Copy Markdown
Contributor

@GuzmanPI GuzmanPI commented Jul 8, 2020

Adds an href property to the component, so it redirects.

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

Improves the book component in the docs app. It also changes the landing components so they redirect to a proper url.

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Other... Please describe:

What is the current behavior?

The book components in the landing page do not redirect.

Issue Number: #710

What is the new behavior?

The book components in the landing page redirect.

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

Comment thread apps/scully-docs/src/app/landing/landing.component.html
@GuzmanPI GuzmanPI force-pushed the fix/landing-broken-links branch from a84287f to d21d94a Compare July 8, 2020 19:32
@SanderElias
Copy link
Copy Markdown
Contributor

@GuzmanPI can you gix the MC

@GuzmanPI GuzmanPI force-pushed the fix/landing-broken-links branch from d21d94a to 64231e5 Compare July 10, 2020 12:10
Comment thread apps/scully-docs/src/app/components/book/book.component.html Outdated
@GuzmanPI GuzmanPI force-pushed the fix/landing-broken-links branch 2 times, most recently from 6c8b3cf to d4b4b1f Compare July 14, 2020 13:31
Fix test snapshots
@GuzmanPI GuzmanPI force-pushed the fix/landing-broken-links branch from d4b4b1f to 52e70d2 Compare July 14, 2020 14:04
@@ -1,8 +1,8 @@
<div>
<a [href]="href">
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why don't you use routerlink?

export class BookComponent implements OnInit {
@Input() header: string;
@Input() text: string;
@Input() href: string;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Reusing an existing and meaningfull attribute might become an issue later on.


<div class="container-tools">
<div class="guide-1" [routerLink]="'/docs/getting-started'">
<div class="guide-1">
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

perhaps exchange the div for an instead of bolting on things?

@SanderElias SanderElias merged commit 3e68794 into main Jul 14, 2020
@SanderElias SanderElias deleted the fix/landing-broken-links branch July 14, 2020 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants