Register on the forum now to remove ALL ads + popups + get access to tons of hidden content for members only!

Go Back   Site Owners Forums - Webmaster Forums > Web Programming > Programming General > Javascript

Notices


Reply
 
Thread Tools Rate Thread Display Modes
Old 08-25-2018, 09:30 AM   #1
ajaxdns
Registered User
 
Join Date: Apr 2018
Posts: 1,360
How to validate an URL in Angular JS?

Adding the regex directly to the ng pattern to the attribute can help you validate the URL in Angular JS.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
ajaxdns is offline   Reply With Quote

Old 09-19-2018, 10:26 PM   #2
richardmsmith
Registered User
 
Join Date: May 2018
Posts: 288
I would like to suggest ng2-validation library. It can be used to perform most validations you should ever need. Angular2 custom validation, inspired by jQuery validation.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
richardmsmith is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
List some difference between Angularjs and Angular 2? ajaxdns Javascript 0 08-25-2018 09:30 AM
How to do email and Phone no. validation in Angular JS? ajaxdns Javascript 0 08-25-2018 09:26 AM
What are directives? How to create and use custom Directive in Angular js. ajaxdns Javascript 0 08-25-2018 09:25 AM
List some of the built-in validators in Angular JS? ajaxdns Javascript 0 08-25-2018 09:24 AM
What is Angular Module? How to create a Module in Angular js? designpluz Javascript 0 07-28-2018 03:22 AM


All times are GMT -7. The time now is 10:10 AM.


Powered by vBulletin Copyright © 2013 vBulletin Solutions, Inc.