Angular 1.5 Component
See original GitHub issueGreat plugin.
I’m using it in an Angular 1.5 app built with component architecture.
Everything is working just fine but I’m struggling to work out how to get a ref of the ng-dropzone object in my component controller, in order to call the getDropzone() method.
<div class="dropzone" options="vm.dzOptions" callbacks="vm.dzCallbacks" methods="vm.dzMethods" ng-dropzone></div>
I need to be able to populate the dropzone with files which already exists on the server.
Any help much appreciated.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:8 (4 by maintainers)
Top Results From Across the Web
AngularJS: Developer Guide: Components
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 >Exploring the Angular 1.5 .component method
AngularJS 1.5 introduced the .component() helper method, which is much simpler than the .directive() definition and advocates best practices ...
Read more >A Guide to Building Quality Angular 1.5 Components
In Angular 1, components are the mechanism which allows you to create your own custom HTML elements. This has been possible with Angular...
Read more >Build an Angular 1.5 component - An AngularJS Tutorial
A component is basically a directive that uses a simpler configuration and that is suitable for a component-based architecture, which is what ...
Read more >Try AngularJS 1.5 - 12 of 33 - A Controller & Component
Try AngularJS 1.5 - 12 of 33 - A Controller & Component Try AngularJS is a step-by-step introduction to the AngularJS framework version...
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 Free
Top 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

@sicollins
the $onInit function on the component is here for that 😉
I have put a ‘+1’ for the “populate the dropzone” part of your issue :p
This will help people with same problem.
https://github.com/thatisuday/ng-dropzone/wiki/Working-with-angular-1.5-Component