@@ -29,9 +29,9 @@ openweathermapFactory.getWeatherFromCitySearchByName({
2929 units:"<UNITS >", // (optinal) http://openweathermap.org/current#data
3030 type:"<TYPE >", // (optional) 'like' = close result, 'accurate' = accurate result
3131 appid:"<APP _ID >"
32- }).success (function(_data){
32+ }).then (function(_data){
3333 //on success
34- }).error (function (_data) {
34+ }).catch (function (_data) {
3535 //on error
3636});
3737```
@@ -44,9 +44,9 @@ openweathermapFactory.getWeatherFromCityById({
4444 lang: " <LANGUAGE>" , // (optional) http://openweathermap.org/current#multi
4545 units: " <UNITS>" , // (optinal) http://openweathermap.org/current#data
4646 appid: " <APP_ID>"
47- }).success (function (_data ){
47+ }).then (function (_data ){
4848 // on success
49- }).error (function (_data ) {
49+ }).catch (function (_data ) {
5050 // on error
5151});
5252```
@@ -59,9 +59,9 @@ openweathermapFactory.getWeatherFromGroupOfCitiesById({
5959 lang: " <LANGUAGE>" , // (optional) http://openweathermap.org/current#multi
6060 units: " <UNITS>" , // (optinal) http://openweathermap.org/current#data
6161 appid: " <APP_ID>"
62- }).success (function (_data ){
62+ }).then (function (_data ){
6363 // on success
64- }).error (function (_data ) {
64+ }).catch (function (_data ) {
6565 // on error
6666});
6767```
@@ -75,9 +75,9 @@ openweathermapFactory.getWeatherFromLocationByCoordinates({
7575 lang: " <LANGUAGE>" , // (optional) http://openweathermap.org/current#multi
7676 units: " <UNITS>" , // (optinal) http://openweathermap.org/current#data
7777 appid: " <APP_ID>"
78- }).success (function (_data ){
78+ }).then (function (_data ){
7979 // on success
80- }).error (function (_data ) {
80+ }).catch (function (_data ) {
8181 // on error
8282});
8383```
@@ -90,9 +90,9 @@ openweathermapFactory.getWeatherFromLocationByCoordinates({
9090 lang: " <LANGUAGE>" , // http://openweathermap.org/current#multi
9191 units: " <UNITS>" , // (optinal) http://openweathermap.org/current#data
9292 appid: " <APP_ID>"
93- }).success (function (_data ){
93+ }).then (function (_data ){
9494 // on success
95- }).error (function (_data ) {
95+ }).catch (function (_data ) {
9696 // on error
9797});
9898```
0 commit comments