Skip to content
This repository has been archived by the owner on Feb 2, 2019. It is now read-only.

Commit

Permalink
fix(examples): link to angular2 tag on index page
Browse files Browse the repository at this point in the history
  • Loading branch information
justindujardin committed Mar 20, 2016
1 parent fe2c8ab commit 98b642c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/routes/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ <h1 class="examples-title">Introduction</h1>
Welcome to the <a href="https://github.com/justindujardin/ng2-material">ng2-material</a> examples site.
Here's the <a href="coverage/" target="_blank">test coverage</a> report.
</p>
<p>Compatible with: <a href="https://github.com/angular/angular/releases/tag/{{angularVersion}}" target="_blank">angular2@{{angularVersion}}</a>.</p>
<p>Compatible with: <a href="https://github.com/angular/angular/releases/tag/{{linkTag}}" target="_blank">angular2@{{angularVersion}}</a>.
</p>
<p>There are instructions for getting started at the bottom.</p>
</section>

Expand Down
2 changes: 2 additions & 0 deletions examples/routes/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export class IndexPage implements OnInit {
public components: IComponentMeta[] = [];

public angularVersion: string = '';
public linkTag: string = '';

constructor(private _components: ComponentsService,
private _sidenav: SidenavService,
Expand All @@ -29,6 +30,7 @@ export class IndexPage implements OnInit {
this.http.get('public/version.json')
.subscribe((res: Response) => {
this.angularVersion = res.json().angular2;
this.linkTag = res.json().angular2.replace(/[>=^~]/g,'');
});


Expand Down

0 comments on commit 98b642c

Please sign in to comment.