Posts by David Silva • 189 points
11 posts
-
1
votes3
answers1541
viewsA: Angularjs Format date
Hello friend has a great javascript library for date formatting http://momentjs.com/ On your controller it would look like this Moment(yourData). format('DD-MM-YYYY'); Library document…
-
1
votes1
answer268
viewsA: Ng-repeat with preselected value
That by best practices you have to use ng-options in place of ng-repeat within each select field. To select a field when returning from the base you have to have the same property set in ng-model…
-
3
votes1
answer643
viewsA: Get item from an array with jQuery
Hello friend I hope I can help in the doubt <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script> <script> $(document).ready(function(){ var…
-
1
votes1
answer157
viewsA: Page Scroll with jQuery
Hello friend tries to check the version of jquery you are using, I mounted one that picks up the top of the paragraph $(document).ready(function(){ $("button").click(function(){ alert("Top: " +…
-
1
votes1
answer30
viewsA: Placeholder does not identify characters
The placeholder only to write the inside of the textbox, as you are using the textboxfor email property of your pojo object is not cleaning try to use so @Html.TextBoxFor(x => x.Email, new {…
-
0
votes1
answer138
viewsA: How to handle my app routes with Express
Within your route configuration file and in your search controller $stateParams.chatIdwith this you take the parameter from the url $stateProvider.state('tab.chat-detail', { url: '/chats/:chatId',…
-
4
votes4
answers785
viewsA: Should I use a "Try-catch" to identify if a password is wrong?
The Try/Catch most used to catch some error from exception in the system type conversion problem these things. My suggestion is that you check the Count of the search in the database. If it returns…
-
0
votes2
answers98
viewsA: Pass variables in the Intel getjson XDK URL
Hello, Pass the parameters with / Example $.get('suaUrl/paramentro1/paramentro2', suaFuncaoRetorno); function suaFuncaoRetorno(itens){ console.log(itens); }…
-
1
votes2
answers916
viewsA: Hide widget with Angularjs
you can use ng-Hide to hide and the ng-show to display the html or ng-if tag so that the component only exists if it is true More information link https://docs.angularjs.org/api/ng/directive/ngHide…
angularjsanswered David Silva 189 -
0
votes3
answers2776
viewsA: How to fill a select with angular using materialize
So friend the select of the angular material works in the same format as normal As angular material is a directve you have to use as element and not as attributes in your html tag…
-
0
votes1
answer87
viewsA: How to get the index of a populated list in the change of a select using the ng-options of Angularjs
Within ng-options you must include the index with the value of your array example ng-options="produtos.indexOf(prod) as prod.NomeProduto for prod in produtos" done this the ng-model value becomes…
angularjsanswered David Silva 189