I have a problem, I want to make a page that takes values that I have determined in a video.js file to be returned to a specific url.
.state('video.id', {
url: '/:id',
templateUrl: 'tpl/video_id.html',
})
Being the param: id the value that I have to type in the browser to pull the specific data from the video.js file and return to the site.
This is being done. However, it also tries to return values without even existing it, being able to open the page, but there is no record, and can even be opened without any record.
Examples:
site.com/video/ - opens but does not show anything
site.com/video/LALALALA - opens but does not show anything, since there is no such id in the file, if it exists it appears.
How can I block page entry, when there are no id values in the file?