$locationChangeSuccess
Broadcasted after a URL was changed.
The newState and oldState parameters may be defined only in HTML5 mode and when the browser supports the HTML5 History API.
Property names must be strings. This means that non-string objects cannot be used as keys in the object. Any non-string object, including a number, is typecasted into a string via the toString method.
angular.module('events.services', [])
.factory('EventService', function($http, $cordovaSQLite) {
return {
getDataFromDB: function() {
var query = 'SELECT id, title, img, coords, details, dateString, timestamp FROM events ORDER BY timestamp DESC';
return $cordovaSQLite.execute(db, query);
}
}
})
/** @return CWebApplication|CConsoleApplication */
function app()
{
return Yii::$app;
}
/** @return CHttpRequest */
function req()
{
return Yii::$app->getComponent('request');
}