Posts

Regex

IPV6 Validation: checkipv6Format:function(input) { var regex = /^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))...

Angular Road Map

Hi Viewers, Angular RoadMap 1)  Angular Intruction 2)  Angular Install & Project structure 3)  Angular Components 4)  Angular Data Bindinig 5)  Angular Directives 6)  Angular Routing 7)  Anguler Form 8)  Angular Services 9)  Angular CURD APP 10) Angular & Angular firebase

Angular 2 change port No

Hi  Viewers, How to change the port No in angular 2 1)  Go to project root directory 2)  open angular-cli.json 3) go to defaults parameter and add the port property. Ex "defaults": {     "styleExt": "css",     "component": {}, "serve": {             "port": 2500         }   }

Remove the component in angular 2

Hi Viewers, How to remove the component in angular 2 application                No As of now you can't do this by any command. You've to remove Manually from app.module.ts and app.routing.module.ts if you're using Angular 5

How to set route Configuration in angular 2 / 4

Hi Viewers, Go to your project directory 1) ng g component about Manually generate the app.router.ts file and paste it below code. import { ModuleWithProviders } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; import { AppComponent } from './app.component'; import { AboutComponent } from './about/about.component';   -- Once component generated automatically it will updated. export const router: Routes = [  { path: '', redirectTo:'about', pathMatch: 'full' },  { path: 'about', component:AboutComponent }, ]; export const routes: ModuleWithProviders = RouterModule.forRoot(router); 2) Go to index.html       <!doctype html> <html lang="en"> <head>   <meta charset="utf-8">   <base href="/">   <meta name="viewport" content="width=device-width, initial-scale=1">   <link rel="ico...

Angular 2 Installation

Hi Viewers, 1) First install Node Js  (https://nodejs.org/en/download/ ) 2) Angular Cli / https://cli.angular.io/ 3) npm install -g @anglar/cli 4) mkdir project folder 5) ng new project-app 6) ng serve 

Angular 2 Data Binding

Hi Viewers, 4 Types of Data binding using in Angular 2 1) Interpolation Example Syntax {{}} 2) Property Binding It's a one way data binding. Property binding return String, Boolean, number only Example Syntax [title] =" Must be data property". 3) Event Binding 1) From DOM to Component 2) Any changes in your HTML  It's reflect in your component. 4) Two way data binding 1) Angular 2 is a two day data binding