-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
hi @daoudaDiallo thank for this big tools
i am try to use aclService hide/show somes action on my application but when i use it like this:
html:
<li class="liste-menu" routerLinkActive="active" *ngIf="can('utilisateurs')"> <a routerLink="/contact" title="Contact"> <img src="../../../../assets/img/sidebar/37-8.png" alt="Contact"> <span class="menu-item-parent">{{'Contact' | i18n}}</span> </a> </li>
component:
import {Component, OnInit} from '@angular/core';
import {LogoComponent} from "../../user/logo/logo.component";
import { AclService } from 'ng2-acl/dist';
@Component({
selector: 'sa-navigation',
templateUrl: './navigation.component.html',
styleUrls : ["./navigation.component.css"]
})
export class NavigationComponent implements OnInit {
can:any;
constructor(private aclService: AclService) {
}
ngOnInit() {
this.can = this.aclService.can;
}
}
i get this error fix this issue. please help
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels