greatCodeIdeas / md-date-range-picker

Angular Material Date Range Picker Service/Directive
MIT License
62 stars 40 forks source link

md-date-range-picker is giving error while injecting into project #66

Open kanishkgupta55 opened 5 years ago

kanishkgupta55 commented 5 years ago

I have installed md-date-range-picker using bower install md-date-range-picker. But while injecting "ngMaterialDateRangePicker" in angular.module. Here is a part of my code : angular.module('app.dashboards', ['app.dashboards.gantt-chart', 'ngMaterial', 'ngMaterialDateRangePicker' ])

It is giving mentioned below error: "Failed to instantiate module ngMaterialDateRangePicker due to: Error: [$injector:nomod] Module 'ngMaterialDateRangePicker' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument."

roelbarreto commented 5 years ago

@kanishkgupta55 Did you add the main script to your src or in script tag?

  <script src="./path/to/bower_components/md-date-range-picker/dist/md-date-range-picker.js"></script>