Created
December 25, 2015 07:23
-
-
Save mcknightg/7a750bc99fa8e61d7494 to your computer and use it in GitHub Desktop.
Loading and using external js
This file contains 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
<head> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<script type="text/javascript" src="/typeahead.js"></script> | |
</head> |
This file contains 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
Template.yourtemplate.onRendered({ | |
$('#typeahead').typeahead({ | |
name: 'users', | |
local: usernames | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment