Skip to content

ERROR TypeError: this.resume is not a function #2

@agnongote

Description

@agnongote

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"> &nbsp;&nbsp;<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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions