src/app/pages/voting/voting-navigation/voting-navigation.component.ts
selector | framadate-voting-navigation |
styleUrls | ./voting-navigation.component.scss |
templateUrl | ./voting-navigation.component.html |
Properties |
|
constructor(config: ConfigService)
|
||||||
Parameters :
|
Public config |
Type : ConfigService
|
import {Component} from '@angular/core';
import {ConfigService} from "../../../services/config.service";
@Component({
selector: 'framadate-voting-navigation',
templateUrl: './voting-navigation.component.html',
styleUrls: ['./voting-navigation.component.scss']
})
export class VotingNavigationComponent {
constructor(public config: ConfigService) {
}
}
<nav id='navigation'>
<nav class='sections-nav' >
<ul >
<li >
<a href='#title' >
{{config.currentPoll.poll.title}}
</a >
</li >
<li >
<a href='#table' >
{{config.currentPoll.stacks.length}}
votes
</a >
</li >
<li >
<a href='#graph' >
Graphique
</a >
</li >
<li >
<a href='#comments' >
<i class='fa fa-comments' ></i >
<span
*ngIf='config.currentPoll && config.currentPoll.comments'
class='comments-count' >
{{config.currentPoll.comments.length}}
</span >
commentaires
</a >
</li >
</ul >
</nav >
</nav>
./voting-navigation.component.scss