V
V
Vladimir2016-09-15 23:05:17
Angular
Vladimir, 2016-09-15 23:05:17

How to connect kendo ui to NG6-starter pack?

I use this starter for the project https://github.com/AngularClass/NG6-starter
There is a need to use ui elements from kendo ui ( docs.telerik.com/kendo-ui/AngularJS/introduction)
I connect like this

import $ from 'jquery';
import angular from 'angular';
import 'kendo-ui-core';
import uiRouter from 'angular-ui-router';
import ngResource from 'angular-resource';
import ngCookies from 'angular-cookies';
import Common from './common/common';
import Components from './components/components';
import AppComponent from './app.component';
import 'normalize.css';

pastebin.com/raw/tgdp0UMR
And I get the error
Error: The Kendo UI directives require jQuery to be available before AngularJS. Please include jquery before angular in the document.
The easiest way is to put jQuery in index.html, but is it possible to do it via import ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Prokopenko, 2016-09-16
@Casufi

try to connect jquery via webpack config like this: https://webpack.github.io/docs/shimming-modules.ht... (there is an example with jQuery)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question