get is a method of the $http service.It is used to perform a get request on a server.
get(url,[config]);
Q2 . What is the use of put in in AngularJS?
SOLUTION
put is a method of the $http service.It is used to perform a put request on a server.
put(url, data, [config]);
Q3 . what is Json?
SOLUTION
It stands for Javascript object notation.It is a data representation format.It can be used to transfer the data between the an client and a server.
Q4 . Basic syntax of Json?
SOLUTION
"name":"tom", "age":07".In Json the format is the field like the name followed by a colon then the value of the column tom.
Above example has name and age as fields and tom and 07 as their respective values.
Q5 . How to represent number in Json?
SOLUTION
"class":10
Whenever we are using numbers we do not enclose them in double quotes like we do for strings.
Q6 . Give an example of Json data?
SOLUTION
{"name":"tom", "age":017"}
Q7 . How to give a string in Json?
SOLUTION
"name":"tom"
Whenever we are using strings to be represented in the JSON we enclose them with double quotes.The name tom is a string and hence it is enclosed in double quotes.
Q8 . What is the use of JSONP method?
SOLUTION
It stands for JSON with padding .It can be used to transmit data from one domain to another without any issues.It can be used with a script tag.
Q9 . what is state of an input field in AngularJS?
SOLUTION
The state of an input field is data regarding the input field that can be used to validate the current scenario in that field .Some examples are
Is it valid?
is it invalid?
Q10 . What is the use $untouched in AngularJS?
SOLUTION
It is a state of an input field.It shows that the field has not been touched yet.