Class ifcDirectives.WebsiteInput

Class defined in: src/directives/websiteinput.js:1
ifcWebsiteInput( )
src/directives/websiteinput.js:16

ifc-website-input parse the text introduced in an input box and test if it may be a url web site. The introduced url may specify one of the web protocols (http or https) or not. The directive always returns to the model (variable specified by ng-model directive) the url with the protocol part, when the introduced value is a right web site url, so it adds the http protocol when the input url lacks of protocol.

The directive report an error to the ngModelCtrl labeled websiteUrl when the html element doesn't have id attribute, otherwise prepend to it WebsiteUrl, which is a boolean with true value when the input text is a wrong url.