Skip to content

Instantly share code, notes, and snippets.

@anmolio
Last active April 6, 2020 07:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anmolio/7eb97e2c3d5badb9ba56d1d1a939a33b to your computer and use it in GitHub Desktop.
Save anmolio/7eb97e2c3d5badb9ba56d1d1a939a33b to your computer and use it in GitHub Desktop.
A custom script.js file inside assets folder - Angular 9 to create global functions in project.
/* You can add global JS/TS functions to this file
Examples:
1. validateUrl(url)
2. rediret(url)
3. objectLength(object) { return Objects.keys(object).length; }
*/
$(function() {
// Load webflow after jquery to resolve conflicts and transitions
$.getScript('assets/js/webflow.js');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment