Posts by Stefano Sandes • 154 points
7 posts
-
1
votes1
answer29
viewsA: Set a default value in Binding.value Vue Directive
More objectively and directly you can solve so: Vue.directive('color', { bind: function (el, binding) { var prop = (binding.value || { color: '#FFFFFF' }), color = prop.color // Não vai mais precisa…
vue.jsanswered Stefano Sandes 154 -
0
votes2
answers35879
viewsA: No 'Access-Control-Allow-Origin' header is present on the requested Resource. Origin 'null' is therefore not allowed access. - Phonegap
Everything indicates that it is a communication problem with the server of your site. This occurs when you try to make a call to a server that is in a domain other than the origin of your request. I…
-
0
votes3
answers66
viewsA: Modify element through Javascript and "warn" page that element has been modified
This event is only triggered when the user changes the content of textareaand the element loses focus (https://developer.mozilla.org/en-US/docs/Web/Events/change). You can fire the event using…
-
0
votes3
answers2812
viewsA: How to convert a string to boolean?
Possible but not recommended If you need to convert directly can use the function eval(): https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/eval. In your case I could…
-
5
votes1
answer549
viewsQ: Entity with multiple members of the same type in the Entity Framework
When we have two entities related to Many-to-Many and create the navigation properties correctly Entity creates an extra table to configure that relationship. In the case I’m working I have a…
-
2
votes1
answer721
viewsQ: Entity Framework associative table mapping
Abstracting some details I have these classes: public class Department: Entitie { public string Description { get; private set; } public DateTime CreateDate { get; private set; } public virtual…
-
3
votes1
answer176
viewsQ: Complex mapping Entity Framework
I am creating a class structure that follows the following form: Department -Service A department provides various types of service. A specific service can only be provided by one department, not by…