Restangular, Firebase, ngRoute - rosalsm/TIY-GitHub GitHub Wiki
In my repo, I will run
npm install restangular
or
bower install restangular
or
in my index.thml adding to the scripts
<script type="text/javascript"src="http://cdnjs.cloudflare.com/ajax/libs/restangular/1.3.1/restangular.min.js"></script>
If they are like that class org/repos/issue
Restangular.all("class Org")
Restangular.one("class Repo", issues)
Restangular.one("milestone", issues)
The basic operation through the REST API is PUT(writing data with a PUT request) We can issue an HTTP GET request to the same endpoint to read the data we saved. POST request. Pushing data. Equivalent of the JS push() method. Adding data. PATCH request. Updating data. Equivalent of JS update() function. Overwriting info to update info, just the children they have to be updated. DELETE request. Removing data
You need to use authentication (the process of proving user's identity) using your Firebase app's secret or an authentication token (secure JSON web tokens(JWTs)).
All Firebase database data is stored as JSON objects.
The ngRoute
module provides routing and deeplinking services and directives for angular apps.
$route
is used for deep-liking URLs to controllers and views(HTML partials). It watches `$location.url() and tries to map the path to an existing route definition
$routeParams
service allows you to retrieve the current set of route parameters.
The route parameters are a combination of $location
'ssearch()
and path()
parameters are extracted when the $route
path is matched.