Posts by Rodrigo Soares • 233 points
10 posts
-
1
votes2
answers615
viewsA: Error page in Angularjs
You can enter the following code on your routes. When you cannot find a valid route, it redirects to the /404 route $routeProvider .when('/home', {template: homeTemplate}) .otherwise({ redirectTo:…
-
3
votes2
answers1658
viewsA: How to create App routes using Ionic and Angulas.js?
Tiago, Ionic uses ui-router as Provider for routes. What you want to do is possible. Example: var myApp = angular.module('helloworld', ['ui.router']); myApp.config(function($stateProvider) { var…
-
2
votes2
answers393
viewsA: Routes with Angularjs and Node.js
War, the $routeProvider is used only on the front end and serves to navigate between pages. With it you can define the controller and layout of each page. nodejs is a server (backend). The routes…
-
1
votes1
answer963
viewsA: Ui-Routes get logged in user id
Try using this ui-sref="perfil({userId: '{{user.id}}'})". Check if this state waits for the userid parameter. .state('perfil', { url: '/perfil', templateUrl: 'perfil.html', controller: 'Perfil',…
-
2
votes1
answer660
viewsA: Ui-route More than one view
Biellx, use the ui-router Nested Views. Example: var app = angular.module('app', ['ui.router']); app.config(function ($stateProvider, $urlRouterProvider) { // For any unmatched URL redirect to…
-
0
votes3
answers2578
viewsA: Pass Token by header to each Angularjs request
You can configure your requests to always use the token you set. $http.defaults.headers.common.Authorization = 'Bearer ' + token;…
angularjsanswered Rodrigo Soares 233 -
0
votes1
answer264
viewsA: Best way to inherit a controller and override a Gularjs 1.5.x routine
Ricardo, if using ui-router in your project. Take a look at Nested States and Views. With it you can create an abstract state(route) and create other children States inheriting $Scope and resolves.…
angularjsanswered Rodrigo Soares 233 -
0
votes1
answer35
viewsA: Phonegap: problems when creating android buil
If you installed the API from Android Studio, open the package manager from the terminal and check the installation again. I had a similar problem, where, opening the manager by Android Studio…
-
0
votes2
answers488
viewsA: Does not load Splash for iOS in Phonegap Build
1 - Ionic has a bug when generating splashscreen and icones from a PNG. I bypassed this problem by converting the images to PSD. 2 - Place the icon.psd and splash.psd files in the Resources folder.…
-
0
votes2
answers96
viewsA: How to make Netbeans recognize the ES2015 syntax?
Netbeans Development Version Already Supports ECMA6. http://bits.netbeans.org/download/trunk/nightly/latest/…