Skip to content

Instantly share code, notes, and snippets.

@dested
Created March 8, 2015 16:52
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save dested/0e1ae2dfe0001af0bd5e to your computer and use it in GitHub Desktop.
Angular 2 One Component Selector
<ion-tab title="Title One!">Content 1</ion-tab>
<ion-tab title="Title Two!">Content 2!</ion-tab>
@Component({
selector: 'ion-tab',
model:{
title:'title'
}
})
@Template({
inline: `<div>{{title}}<content/></div>`,
directives: []
})
export class IonTab {
constructor() {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment