File

src/app/pages/voting/voting-navigation/voting-navigation.component.ts

Metadata

selector framadate-voting-navigation
styleUrls ./voting-navigation.component.scss
templateUrl ./voting-navigation.component.html

Index

Properties

Constructor

constructor(config: ConfigService)
Parameters :
Name Type Optional
config ConfigService No

Properties

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

Legend
Html element
Component
Html element with directive

result-matching ""

    No results matching ""