Skip to content

Commit 8defa86

Browse files
committed
added webpack/meteor switch
1 parent b93f627 commit 8defa86

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

src/app/website/tutorials-container/tutorials-container.component.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ import {ANGULAR1_METEOR_SOCIALLY} from "../../tutorials/angular-meteor-socially"
66
import {DomSanitizer} from "@angular/platform-browser";
77
import {Observable} from "rxjs";
88
import * as _ from 'lodash';
9+
import { ANGULAR2_WHATSAPP_IONIC_CLI } from '../../tutorials/angular2-whatsapp-ionic-cli';
10+
import { ANGULAR2_WHATSAPP_METEOR_CLI } from '../../tutorials/angular2-whatsapp-meteor-cli';
911

1012
@Component({
1113
selector: "tutorial",
@@ -115,6 +117,25 @@ export class TutorialsContainer {
115117
]
116118
}
117119

120+
if (this.tutorial && (this.tutorial.id === ANGULAR2_WHATSAPP_IONIC_CLI.id || this.tutorial.id === ANGULAR2_WHATSAPP_METEOR_CLI.id)) {
121+
let index = this.steps.findIndex((s) => {
122+
return s.template == this.step.template;
123+
});
124+
125+
return [
126+
{
127+
name: "Meteor",
128+
link: this.utils.createAbsoluteLink("meteor" + ANGULAR2_WHATSAPP_METEOR_CLI.versions['master'].steps[index].url, this.parentRoute),
129+
active: this.tutorial.id === ANGULAR2_WHATSAPP_METEOR_CLI.id
130+
},
131+
{
132+
name: "Webpack",
133+
link: this.utils.createAbsoluteLink("ionic" + ANGULAR2_WHATSAPP_IONIC_CLI.versions['master'].steps[index].url, this.parentRoute),
134+
active: this.tutorial.id === ANGULAR2_WHATSAPP_IONIC_CLI.id
135+
}
136+
]
137+
}
138+
118139
return [];
119140
}
120141
}

0 commit comments

Comments
 (0)