Skip to main content

Posts

Angular CLI Command List

These commands are use for create a project , project component, services, models etc in angular. The list of all command and there information are availabel here. Setup CLI We need to install CLI first of all open command prompt and write down given command . It will automaticaly install Angular CLI in system. Before this you need Node.js Installed in your system. Go to node official website simply downlod the installer and run on your system. After that this command will work for you. npm install @angular/cli -g Create new angular projects ng new: Command This command is user to create a new project with angular CLI. ng new project name Example ng new project-1 --dry run instruction for CLI Simply when we don’t know what a command do in our system. We can use –dry run instruction with command it will show its working in console but don’t do anything in system. Example ng new project –dry run --skip-install instruction This instruc...

Simple Jquery Accordian

Jquery Accordian Copy all coad in seprate file

Upload image and preview thumbnail using Jquery

 We have to a input type file. We implement a function on it to read file url. FileReadr is a javascript function witch allow us to read image from our computer. See more detail for code.  

Set Content and Attributes using Jquery

We have three button Set Text, Set HTML, Set Value. Jquery allow us to play with content, dom, and Attributes. This is very simple example but you can use it in your complex program. take idea from hrer that how to access html , text, and attribute using jquery.

Remove default event of element

There is a lot of  HTML Element which have default event. But sometime you need to stop these event for any reason.  This is how we can stop default event of element You can check live example fiddle here  

jquery - Disable submit button unless original form data has been changed

You have to stop change url on submit if it has class disable. You also can check this live on Fiddle Here

Input box allow only one space between text javascript

You can check it live in Fiddle