Posts by Alexandre Busarello • 197 points
11 posts
-
1
votes2
answers1034
viewsA: How to pass an array that is in the controller to a directive
You can pass data to a directive as attributes of this directive in your use. Example: <div pie-donut pie-data="arrayPieData"></div> Where "PieData array" belongs to the Scope of the…
angularjsanswered Alexandre Busarello 197 -
1
votes3
answers204
viewsA: Get function in service.js returns null
The "categories[i]. idProduct" you use to compare to the "productId" does not exist. What exists is the "categories[i]. products[y]. idProduct". So your job had to be something like this: for (var i…
-
1
votes1
answer371
viewsA: View videos in <video> tag using Angularjs
Since it is a fixed amount of videos (and that is not going to change). You can just do the following: <div class="list card" ng-repeat="x in content.spells"> <video width="320"…
-
3
votes1
answer1367
viewsA: FIPE Table API Form using Angular
Follow solution in plunker: https://plnkr.co/edit/fRyU7lbbwy0EVcqQCCxQ I switched to use "ng-options" in the brand and used "ng-change" to trigger the models query. <script>…
-
2
votes2
answers119
viewsA: What is the name of these parameters in ASP.NET MVC?
You do not need to create a new attribute to limit the authorization by ROLE. You can use Authorize itself, for example: [Authorize(Roles="User")] Now if you’d really like to create a new attribute,…
-
0
votes2
answers534
viewsA: LINQ update of all listed items (changing the status of all listed items)
In order for you to change the value of a record of a particular Entityframework entity, you need to search for the object you want to change. In this list "_s", it is not possible to change the…
-
0
votes2
answers58
viewsA: Fetch file in multiple folder from a base folder, except the folder
Just adjusting the jbueno code I believe works for what you need. var files = Directory.GetFiles(@"C:\Teste_Zip\web", "*.*", SearchOption.AllDirectories) .Where(d =>…
c#answered Alexandre Busarello 197 -
2
votes3
answers203
viewsA: Licensing: How to deal with date/local time tampering of a computer?
You can compare to the application’s own database by checking if there are no records with a date and time later than the date set on the local computer. For if the date has been tampered with an…
-
0
votes2
answers1198
viewsA: Pass object between views
Try separating into two different controllers as they are different views. As much as the controller is the same, if you have an "ng-controller='Meucontrole'" in two different views, the $Scope of…
-
0
votes2
answers869
viewsA: Passing a controller variable to a service
If you are using ngRoute, you can inject the "$routeParams" into the controller (I believe it is not possible to use "$routeParams" in the service, so it is giving error) and pass the Id as a…
-
0
votes2
answers1069
viewsA: How do I know I clicked on a Gameobject in Unity?
You should add a Collider to your Gameobject and tag. After adding Collider and tag, in the script linked to your Gameobject you can do the following: function OnCollisionEnter (c : Collision){…
unity3danswered Alexandre Busarello 197