Created
September 10, 2021 00:06
-
-
Save fefogarcia/e5ffd8b2ddd8ab4ca503b36a696bf074 to your computer and use it in GitHub Desktop.
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
const vueFooter = new Vue({ | |
el: '#footer', | |
data: { | |
stateNames: [ | |
'Alabama', | |
'Alaska', | |
'Arizona', | |
'Arkansas', | |
'California', | |
'Colorado', | |
'Connecticut', | |
'Delaware', | |
'Florida', | |
'Georgia', | |
'Hawaii', | |
'Idaho', | |
'Illinois', | |
'Indiana', | |
'Iowa', | |
'Kansas', | |
'Kentucky', | |
'Louisiana', | |
'Maine', | |
'Maryland', | |
'Massachusetts', | |
'Michigan', | |
'Minnesota', | |
'Mississippi', | |
'Missouri', | |
'Montana', | |
'Nebraska', | |
'Nevada', | |
'New Hampshire', | |
'New Jersey', | |
'New Mexico', | |
'New York', | |
'North Carolina', | |
'North Dakota', | |
'Ohio', | |
'Oklahoma', | |
'Oregon', | |
'Pennsylvania', | |
'Rhode Island', | |
'South Carolina', | |
'South Dakota', | |
'Tennessee', | |
'Texas', | |
'Utah', | |
'Vermont', | |
'Virginia', | |
'Washington', | |
'West Virginia', | |
'Wisconsin', | |
'Wyoming', | |
], | |
}, | |
computed: { | |
states() { | |
return this.stateNames.map((stateName) => { | |
const stateSlug = _.kebabCase(stateName); | |
return { | |
name: stateName, | |
slug: stateSlug, | |
uri: `/funeral-home/${stateSlug}`, | |
}; | |
}); | |
}, | |
}, | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment