I'm going to use Primeng schedule (http://www.primefaces.org/primeng/#/schedule) within a project based on Angular2 webpack starter(https://github.com/AngularClass/angular2-webpack-starter).
Since Primeng schedule depends on fullcalendar.js
which is a jQuery plugin, I try to load fullcalendar
and jQuery through webpack. I follow example at here (https://github.com/cagataycivici/angular2-webpack-starter).
In package.json
, I added settings below to "devDependencies"
"fullcalendar": "^2.7.2",
"jquery": "^2.2.4",
"jquery-ui": "^1.10.5",
and added settings below to vendor.js
import 'script!jquery/dist/jquery.min.js';
import 'script!moment/moment.js';
import 'script!fullcalendar/dist/fullcalendar.js';
But the problem is that the Primeng schedule is not rendered in the webpage, even though the <p-schedule></p-schedule>
tag is actually there. Did I miss something?