Skip to content

Commit

Permalink
Update Tree Template doc
Browse files Browse the repository at this point in the history
  • Loading branch information
gucal committed Oct 9, 2023
1 parent 45f3cda commit 2821c97
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/showcase/doc/tree/templatedoc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { Code } from '../../domain/code';
<div class="card flex justify-content-center">
<p-tree [value]="nodes" class="w-full md:w-30rem">
<ng-template let-node pTemplate="url">
<a [href]="node.data" target="_blank">{{ node.label }}</a>
<a [href]="node.data" target="_blank" rel="noopener noreferrer" class="text-700 hover:text-primary">{{ node.label }}</a>
</ng-template>
<ng-template let-node pTemplate="default">
<b>{{ node.label }}</b>
Expand Down Expand Up @@ -57,7 +57,7 @@ export class TemplateDoc implements OnInit {
basic: `
<p-tree [value]="nodes" class="w-full md:w-30rem">
<ng-template let-node pTemplate="url">
<a [href]="node.data" target="_blank">{{ node.label }}</a>
<a [href]="node.data" target="_blank" rel="noopener noreferrer" class="text-700 hover:text-primary">{{ node.label }}</a>
</ng-template>
<ng-template let-node pTemplate="default">
<b>{{ node.label }}</b>
Expand All @@ -68,7 +68,7 @@ export class TemplateDoc implements OnInit {
<div class="card flex justify-content-center">
<p-tree [value]="nodes" class="w-full md:w-30rem">
<ng-template let-node pTemplate="url">
<a [href]="node.data" target="_blank">{{ node.label }}</a>
<a [href]="node.data" target="_blank" rel="noopener noreferrer" class="text-700 hover:text-primary">{{ node.label }}</a>
</ng-template>
<ng-template let-node pTemplate="default">
<b>{{ node.label }}</b>
Expand Down

1 comment on commit 2821c97

@vercel
Copy link

@vercel vercel bot commented on 2821c97 Oct 9, 2023

Choose a reason for hiding this comment

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

Please sign in to comment.