Posts by Diogo Henrique Fragoso de Oliv • 352 points
13 posts
-
3
votes1
answer353
viewsA: Share internet via wifi using command line
Before you know what a shell script is, it’s important to know the who is a Shell. You will have to create a *.bat file and add these commands to the file: netsh wlan set hostednetwork mode=allow…
-
1
votes3
answers710
viewsA: Read json via http by Angularjs
In Stack Overflow gringo you can find your solution here: I made the request on my localhost and received the same error, this apparently is CORS. But in Postman It Works(The Postman and Son of the…
-
1
votes2
answers1015
viewsA: $injector:unpr Unknown Provider
He’s saying that he doesn’t recognize the Provider for the reason that you didn’t inject the Provider(heartTeamSrvc) into the controller, possibly your Factory will break also for the reason that…
-
0
votes2
answers78
viewsA: Angular validation
ng-model validates the input through its name in case your code would have to add the name in the input: <div class="col-sm-3"> <input type="email" name="email" ng-model="Email"…
angularjsanswered Diogo Henrique Fragoso de Oliv 352 -
0
votes4
answers995
viewsA: User permission - Angularjs
As you are using the ui-router this check can be done every time the state is changed($state) you can add in the route if you need to login or not, or if you need to be admin to access some View…
-
0
votes2
answers2026
viewsA: How to get id to edit data with Angular?
to do what you want: "Click the link redirect to another url and take the parameter passed in the url" you will need to inject the ui-router or ng-router in your application, the example below was…
angularjsanswered Diogo Henrique Fragoso de Oliv 352 -
1
votes1
answer636
viewsA: Does anyone explain this git message after a pull to develop it?
There are some probabilities I will quote in order of relevance: Someone’s done the wrong merge between the branchs Your local branch is called feature123 but is pointing to develop The…
gitanswered Diogo Henrique Fragoso de Oliv 352 -
1
votes1
answer83
viewsA: Countdown JS not working on safari
You do not need to use an external angular lib if you choose to use an external lib I advise you to use the Moment.js //Variável limit caso o seu contador tenha limite var limitsegundos = 10…
-
3
votes1
answer198
viewsA: How to perform a type of href with parameters on an image using Ionic / Angularjs
You can mount dynamically(Coming from some controller): ui-sref="{{vm.suaVariavel}}({parametro:'valor'})"> Or statically(Name of the direct state in the view) ui-sref="nomeDoEstado({param1:…
-
4
votes3
answers226
viewsA: Doubt in git usage
Best git workflow tutorial I’ve ever read: Comparing Workflows In my opinion are missing two important branch in your project: Release and the Hotfix…
gitanswered Diogo Henrique Fragoso de Oliv 352 -
0
votes1
answer89
viewsQ: Ionic1 + input [type=file] does not work; How does it work?
In my project, has a file type input that Chrome works correctly, Ios not tested and Android input does not work. Is there a Cordova plugin that makes the input file work or some javascript solution…
-
-2
votes2
answers711
viewsA: Where to put the business rule at the angle?
Overview and Concept, official Angular View independent business logic: Mounts in Services When the application grows, it is good practice to move the controller’s independent display logic to a…
-
0
votes2
answers363
viewsA: Directive Angular
Good morning, try to separate your Ids into different files, follow the link of a good practice tutorial in en good practice tutorial in angular .module('scond-app') .directive('userContact',…