PatrickJS-starter: Error on pug rendering routerLink

Note: for support questions, please use one of these channels: Chat: AngularClass.slack or Twitter: @AngularClass

  • I’m submitting a … [x] bug report [ ] feature request [ ] question about the decisions made in the repository

  • Do you want to request a feature or report a bug? Bug

  • What is the current behavior? Added pug support and when I try to do a('[routerlink]'=" ['./'] " routerlinkactive='active') it gives me "Template parse errors:↵Can’t bind to ‘routerlink’ since it isn’t a known property of ‘a’.

  • If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via https://plnkr.co or similar (you can use this template as a starting point: http://plnkr.co/edit/tpl:AvJOMERrnz94ekVua0u5). Base starter proyect with added pug support only

  • What is the expected behavior? should work

  • What is the motivation / use case for changing the behavior?

  • Please tell us about your environment: The only thing I have changed or added from the repo is pug support.

  • Angular version: 2.0.0-beta.X
  • Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
  • Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 17 (5 by maintainers)

Most upvoted comments

Actually you only need to provide the templateUrl with a string, angular-template-loader or whatever it’s called transforms it into a require call and apply-loader calls the function. And regarding the template you can simply write md-card( (click)="functionCall(data.param)", [attr.something]="something?.else" )