Last active
April 6, 2020 07:18
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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