Posts by leopiazzoli • 516 points
30 posts
-
1
votes3
answers1764
viewsA: Ionic - Display side menu in all view except main page
This documentation can help you: Ionic History Use the $ionicHistory.currentView() to see if this is on the main page, if you are hiding the side-menu: Side-menu…
-
2
votes2
answers213
viewsQ: Treat return in class in C#
I have a class Table: public class Mesa { public int Cdmesa { get; set; } public int Flsituacao { get; set; } public string Status { get; set; } } I would like to return the Status with the…
-
3
votes1
answer63
viewsQ: Reuse of code with web language
I’m working on three apps different ones that use Ionic and Cordova. The three are very similar at some points mainly in the layout. I wonder if it is possible to create a kind of library or…
-
1
votes1
answer383
viewsA: Versionar app in Cordova
That’s what helped me solve Ionic Forum. I followed step by step and adapted the code to my needs. Each time I build the version increments as in the example: v 1.0.0 > Build v 1.0.1 :)…
-
1
votes1
answer1345
viewsA: How to add or remove amount of items in an Ionic List
At the event ng-click='bebida.ad_bebida_quantidade = bebida.ad_bebida_quantidade + 1' But change the <i class='icon ion-plus-round icon-plus-round'></i> for <button class="button…
-
1
votes2
answers1391
viewsA: How to pick up and store an array of data only if Quantity > 0 in Ionic or Angular?
You can use a ng-if="bebida.ad_bebida_quantidade > 0" on the Continue order button there it will not be created until the quantity is greater than 0 so: <button class="button button-block…
-
3
votes1
answer383
viewsQ: Versionar app in Cordova
I have an application made with Ionic + Cordova and I would like to start versioning it for better control and start distributing only I forget to change the version manually to each build besides…
-
0
votes1
answer59
viewsA: Using Factory and Controller to handle Json
Only insert to a list and at the end of the for return the result in this way: getUser: function(id){ var users = []; for(i=0;i<users.length;i++){ if(users[i].id == id){ users.push(users[i]); } }…
-
0
votes4
answers855
viewsA: Deserialize JSON
Correct form: public async Task<IHttpActionResult> PostItemprevenda(Itemprevenda itemprevenda){} When Json is between [ ] the API understands that it is a list of objects, then you have to say…
-
2
votes1
answer211
viewsA: Doubts in the integration of web application with mobile
Particularly I like and use Ionic, Angularjs and ngCordova, together they allow you to do what you need to do. As you can see at this link ngCordova has plugin to login through social networks, and…
-
1
votes0
answers131
viewsQ: Text file in . js was encoded
I’m working on a format file. js in Visual Studio 2015, I opened this same file with Visual Studio Code and saved, now when I try to open this file again it appears encoded. Does anyone know what…
-
0
votes1
answer153
viewsA: Problems with android adb
You have to add the environment variable. Follow the steps: Open the windows environment variables On the ANDROID_HOME variable set the path where adb is installed, usually on C:\Program Files…
ionicanswered leopiazzoli 516 -
1
votes2
answers2426
viewsQ: How to access Web API posted to IIS externally
I developed an ASP . NET Web Application (API) in Visual Studio 2015 and published it on IIS 6.1 to access locally. Now I need to make my machine available as a server for external access. How to do…
-
0
votes2
answers426
viewsA: Return when the function is over
I studied how to use promises, but what really helped me was this answer: How to really learn how to use javascript promises? It looked something like this: function f() { function a() { return…
-
0
votes2
answers426
viewsQ: Return when the function is over
How to return to alert("SUCESSO") as soon as you fall into return alert("ELSE");? sincronizar: function () { sincronizarCliente().then(function () { alert("SUCESSO"); }, function () { alert("SEM…
-
0
votes3
answers189
viewsA: Ion-tabs with tabs-top class on iOS?
Try putting in app.js on . config like this: .config(function ($stateProvider, $urlRouterProvider, $ionicConfigProvider) { $ionicConfigProvider.platform.ios.tabs.position('top'); In this link you…
-
1
votes2
answers320
viewsA: Push Notification IONIC
At this link has official documentation, I would use this in my project. And at this link has more complete documentation and video. I’m also working with Ionic and later I’ll also have to push.…
-
1
votes1
answer43
viewsA: Handle one item at a time in the API
The solution was to control the sending of items to the API by sending one item at a time, because the API has no control over how many items are being saved. Follows code that makes the POST in the…
-
0
votes1
answer43
viewsQ: Handle one item at a time in the API
I have a API that makes the POST of Item in the database, but before doing the POST she makes a GET to obtain a code for the Item that will be saved. NOTE: this code cannot be repeated in the…
-
0
votes2
answers1925
viewsQ: What is Serialize and Deserialize for?
My question is what’s the point Serialize and Deserialize in C#. I have an API and am having some problems with this issue so I want to understand better.
-
3
votes4
answers855
viewsQ: Deserialize JSON
I can do the POST of this information: { "Nritem": 1, "Cdprevenda": 3, "Cdproduto": 7, "Decomplitem": "", "Descricao": "Depilação", "Dtcadastro": "2015-11-27T13:53:35.120Z", "Flsituacao": 1, "Md5":…
-
0
votes4
answers541
viewsQ: Navigate through screens carrying information
I’m working with Angularjs and Ionic, creating a mobile application. I would like to know how best to navigate between the screens taking information from one screen to another. For example: In a…
-
4
votes1
answer4402
viewsA: How to use Angular input Mask
The problem is that the reference to the file angular-input-masks-standalone.min.js was out of the folder www, making the file inaccessible. In this way it worked. Right shape <script…
-
3
votes1
answer4402
viewsQ: How to use Angular input Mask
I use Angularjs and Ionic and am trying to use this Input Mask, but I don’t quite know how to do it. I follow the steps and yet this error appears: Angular Error. References in index.html:…
-
3
votes1
answer85
viewsQ: How to change the value of the variable in Factory?
Inside Factory has a variable countF value 1: Factory app.factory('testFactory', function(){ var countF = 1; return { getCount : function () { return countF; }, incrementCount:function(){ countF++;…
-
0
votes1
answer145
viewsA: Customize Json consumption - Web API
Solved with the following code implemented in the controller: // GET: api/Itemcontaclis/cdContaCli public async Task<IHttpActionResult> GetPelaConta(decimal idContaCli) { return Ok(await…
-
0
votes1
answer59
viewsQ: Using Factory and Controller to handle Json
On this website Andrew Mcgivery I found this very interesting example: .controller('UserCtrl', function($scope, $stateParams, userService) { var user = userService.getUser($scope.id); })…
-
2
votes1
answer145
viewsQ: Customize Json consumption - Web API
I have the following information on Json: [ { "$id": "1", "Cditemcontacli": 1.0, "Cdcontacli": 1.0, "Descricao": "Produto 1" }, { "$id": "2", "Cditemcontacli": 2.0, "Cdcontacli": 2.0, "Descricao":…
-
0
votes1
answer231
viewsA: App Cordova does not work as expected
Reading on this link: Apache Cordova Documentation Cordova’s documentation found that it only works from API 14. (: But thanks for your help.…
-
1
votes1
answer231
viewsQ: App Cordova does not work as expected
I made a simple application using Apache Cordova in the Visual Studio 2015, and added the Angulajs. When I test on Riple emulator works as expected: So I’m going to APK to test on the physical…