It won't work with default "$ctrl" in component view
See original GitHub issueI 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:
- Created 7 years ago
- Reactions:6
- Comments:7
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Being forced to use
controllerAs: "somethingOtherThan$ctrl"
is obviously not a good idea. I thinksv-part
directive should use an isolated scope. to prevent scope collision.@srokatonie, did you use 1.5 component in your case?