Posts by Diullian • 197 points
6 posts
- 
		3 votes3 answers1233 viewsA: Pass directive inside templateYou can create another directive called "modal-body" passing the body (name of the directive to be injected) as a parameter, thus: angular.module("layout") .directive('modalCorpo', function… 
- 
		4 votes2 answers114 viewsA: Receive variable value in 'Where in'You can use a function to help you in this, follow the code below for your problem: CREATE FUNCTION [dbo].[SplitStrByDelimiter] ( @String varchar(MAX), @Delimiter char(1) ) RETURNS @temptable TABLE… 
- 
		2 votes1 answer2644 viewsA: How to use Sweet Alert before deleting Mysql linesYou can create a function that passes the ID as parameter and by clicking the "OK" button it redirects to the delete page! As below: function confirmExcluir(id) { swal({ title: "Excluir", text:… 
- 
		1 votes1 answer401 viewsA: Turning INPUT into Dropdown Items?I made the code below to make this "transformation": $(document).ready(function() { var combo = "<select>"; $(".item-dimension-Tamanho label").each(function(i, valor) { var texto =… 
- 
		0 votes2 answers74 viewsA: Is there any way to debug through the browser to stop exactly on the line being executed?One another solution which may be more practical than adding breakpoint by the inspector, is using the word: debugger Put this and simply open the inspector (F12), avoiding 'hunting' the file to add… 
- 
		5 votes2 answers213 viewsQ: Value priority data ordering using LINQI have a "status" table with the following values: ID 1 = Ativo ID 2 = Novo ID 3 = Excluido How would you return a list of objects (that have the status object) prioritizing, coming first, those…