Reputation: 566
I would like to know if there is a way to include custom jquery to the meanjs yeoman generator. The public folder has serval sub-folders and files in it that seem to be there only for including angular and css files. I am not sure where a custom jquery file should go and how it should be wired up to the rest of the app.
Upvotes: 0
Views: 787
Reputation: 2430
If you add the script into the folder public/lib/
then if you go to the config/env/all.js
and open that file there will be an assets
section in there you will then need to add public/lib/name of jquery file.js
to that array of javascript files. It should look something like the below
assets: {
lib: {
css: [
'public/lib/bootstrap/dist/css/bootstrap.css',
'public/lib/bootstrap/dist/css/bootstrap-theme.css',
],
js: [
'public/lib/angular/angular.js',
'public/lib/angular-resource/angular-resource.js',
'public/lib/angular-cookies/angular-cookies.js',
'public/lib/angular-animate/angular-animate.js',
'public/lib/angular-touch/angular-touch.js',
'public/lib/angular-sanitize/angular-sanitize.js',
'public/lib/angular-ui-router/release/angular-ui-router.js',
'public/lib/angular-ui-utils/ui-utils.js',
'public/lib/angular-bootstrap/ui-bootstrap-tpls.js',
// Add yours here
]
}
}
I hope this helps.
Upvotes: 1