My Angular app is not recognizing this $ character
Look at the error message that is appearing in the browser consoles;
Uncaught ReferenceError: $ is not defined
at novo:21
The code is relative to this one, it is found in the index.html of angular;
<script>
$(function() {
var settings = {
type: 'json',
filelimit: 1,
allow: '*.(jpg|jpeg|png)'
};
UIkit.uploadSelect($('#upload-select'), settings);
UIkit.uploadDrop($('#upload-drop'), settings);
});
</script>
The entire page.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Kwan</title>
<base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
<link rel="stylesheet" type="text/css" href="../src/assets/css/upload.min.css"/>
</head>
<body>
<app-root></app-root>
<script src="../src/assets/javascript/upload.min.js"></script>
<script src="../src/assets/javascript/upload.min.js"></script>
<script>
$(function() {
var settings = {
type: 'json',
filelimit: 1,
allow: '*.(jpg|jpeg|png)'
};
UIkit.uploadSelect($('#upload-select'), settings);
UIkit.uploadDrop($('#upload-drop'), settings);
});
</script>
</body>
</html>
How do I make Angular recognize the $ ?
Angular file.cli.json
"scripts": [
"../node_modules/chart.js/dist/Chart.js",
"../node_modules/jquery/dist/jquery.min.js",
"../node_modules/admin-lte/bootstrap/js/bootstrap.min.js",
"../node_modules/admin-lte/dist/js/app.min.js"
],