question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

It won't work with default "$ctrl" in component view

See original GitHub issue

I was not declaring controllerAs in my component and using default $ctrl in template. sv-root would be just empty div.

After couple of hours I discovered that you have to use controllerAs: 'something' and use it in your template in order to have this directive working.

Hope that helps someone.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:6
  • Comments:7

github_iconTop GitHub Comments

1reaction
alirezamiriancommented, Apr 10, 2017

Being forced to use controllerAs: "somethingOtherThan$ctrl" is obviously not a good idea. I think sv-part directive should use an isolated scope. to prevent scope collision.

1reaction
vlio20commented, Jul 3, 2016

@srokatonie, did you use 1.5 component in your case?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can I not use $ctrl. in angular component template
Why do I have to use $ctrl everywhere in my template? There is $scope so why all the bindings go to $ctrl rather...
Read more >
Developer Guide: Components - AngularJS: API
In AngularJS, a Component is a special kind of directive that uses a simpler configuration which is suitable for a component-based application structure....
Read more >
Enable or disable ActiveX settings in Office files
See how to work with ActiveX controls in your files, changing their settings, and how to enable or disable them by using the...
Read more >
IntelliJ IDEA keyboard shortcuts - JetBrains
Choose the right keymap. To view the keymap configuration, open the Settings/Preferences dialog Ctrl+Alt+ ...
Read more >
Default keyboard shortcuts in Adobe Photoshop
View images ; Switch to previous document. Shift + Control + Tab. Shift + Command + `(grave accent) ; Close a file in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found