ocombe / ocLazyLoad

Lazy load modules & components in AngularJS
https://oclazyload.readme.io
MIT License
2.63k stars 510 forks source link

Syntax Error, unrecognized expression #305

Open abhimediratta opened 8 years ago

abhimediratta commented 8 years ago
<div oc-lazy-load="['template_assets/plugins/multi-select/js/jquery.multi-select.js','template_assets/plugins/multi-select/css/multi-select.css']">
  <div id="add-country-modal" class="modal" ng-include="'views/campaign/addCountryModal.html'">
  </div>
</div>

But I'm getting this error:

angular.min.js:107 Error: Syntax error, unrecognized expression: <div id="add-country-modal" class="modal" ng-include="'views/campaign/addCountryModal.html'">

at Error (native) at Function.st.error (http://localhost:9000/template_assets/plugins/jquery/jquery-1.9.1.min.js:4:10926) at ft (http://localhost:9000/template_assets/plugins/jquery/jquery-1.9.1.min.js:4:17138) at wt (http://localhost:9000/template_assets/plugins/jquery/jquery-1.9.1.min.js:4:19823) at Function.st as find at b.fn.extend.find (http://localhost:9000/template_assets/plugins/jquery/jquery-1.9.1.min.js:4:20941) at b.fn.b.init (http://localhost:9000/template_assets/plugins/jquery/jquery-1.9.1.min.js:3:1126) at b (http://localhost:9000/template_assets/plugins/jquery/jquery-1.9.1.min.js:3:206) at V (http://localhost:9000/template_assets/plugins/angularjs/angular.min.js:52:292) at http://localhost:9000/template_assets/plugins/angularjs/ocLazyLoad.min.js:8:10926

I'm not able to figure what the problem might be, please help.