Using jquery dotdotdot


#1

hi, I am trying to use jQuery plugin in my project…I am using Ionic3

I have already installed jquery , and also downloaded the plugin

from the plugin docs: i added the script tags in index.html

  <head>
     ////
     <script src="assets/jquery/dist/jquery.js" type="text/javascript"></script>
     <script src="assets/jquery.dotdotdot.js" type="text/javascript"></script>// path assets inside www folder where i copied the file .js
    ////
  </head>

.html: (page)

  <div id="wrapper">
     <p>"{{summary}}"</p>
  </div>

.ts:

 ngOnInit(){
        $("#wrapper").dotdotdot({
            ellipsis : '... ',
            wrap : 'word',
            fallbackToLetter: true,
            height: null
        });
}

I get error: Uncaught (in promise): TypeError: __WEBPACK_IMPORTED_MODULE_2_jquery__(...).dotdotdot is not a function

I tried with both .js and .min.js files , but I get the same error