Vue2 App to filter school Areas of Study/Degrees/Programs from a JSON source.
The expected JSON format is:
{
"1": {
"school":"School of Arts & Humanities",
"title":"Studies in the Arts, BA",
"tags":"dance music",
"type":"Undergraduate",
"link":"/arts-humanities/academic-programs.html"
},
"2": {
"school":"School of Business",
"title":"Minor in Computer Information Systems",
"tags":"database",
"type":"Minor",
"link":"/business/computer-information-systems.html"
}...
}
Please update sample-02.json
to your json source in areas-of-study.js
Please replace the vue.js include with the production link if you're using the CDN. This example is using the development version for error checking.
https://vuejs.org/v2/guide/installation.html
The messageChange method is used to send an Event to Google Analytics. Please comment out if you are not using Google Analytics or are testing locally.
messageChange: function (event) {
// send event to Google Analytics, remove if you do not wish to track
if (this.message.length > 4) {
gtag('event', 'keyword', {
'event_category': 'areas_of_study_app',
'event_label': this.message
});
}
}
None of the CSS is index.html
is required. Please edit for whatever works best for your layout/design.