Posts by Daniel Swater • 1,251 points
57 posts
-
0
votes0
answers10
viewsQ: How to grab the label of a multiselect clicked on Ngprime?
I’m working on a project that uses Ngprime and Angular 10. I need to get the label of the checkbox that was clicked, only I don’t find any property that returns the label, only the complete list. I…
-
-1
votes2
answers301
viewsQ: Validation of regex URL
Good afternoon. I need to do a URL validation using javascript. I have the following regex: /^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~:/?#[\]@@!\$&'\ (\)\*\+,;=.]+$/gm It turns out that…
-
0
votes1
answer90
viewsQ: Problem with special characters in password meter
Next, I got a password strength meter that even works. Except he has a bug that I don’t know what the hell happens that I can’t fix at all. To validate, you need to type 8 characters, 1 uppercase…
-
0
votes1
answer49
viewsQ: Bootstrap 4 does not place columns side by side in Angular8
Good afternoon, you guys. I don’t know what’s going on with Bootstrap in a project that I’m doing that it doesn’t put the columns side by side. I tried to change the size, I tried to remove the Rows…
-
0
votes0
answers88
viewsQ: Eventemmiter does not work when the button is clicked
I have a screen on my system that, when clicking on a button, opens a modal window. On this screen I have the following html: info-athlete.component.html <foot-play-edit-perfil-modal…
-
1
votes2
answers235
viewsA: Angular 6 Undefined property in JSON
I got it, guys! In the gfFor, put like this: {{item['key']}}
-
1
votes2
answers235
viewsQ: Angular 6 Undefined property in JSON
I consume an API that returns a JSON to me. The return works perfectly, however, when I try to access some property of this JSON, it gives me as Undefined. I already JSON and is ok JSON: [ {…
-
1
votes2
answers581
viewsQ: Multiple GET requests with Angular 4/5
I’m making a query in an API (SWAPI). The return is an object with all the information of the Star Wars characters. So far so good. But inside this object, I have some sublevels that are arrays and…
angularasked Daniel Swater 1,251 -
0
votes1
answer632
viewsQ: Angular 5 does not redirect to another component
I am trying to get the user to be redirected to another component by clicking on a button, but they are merging. My main component is Home, and I’m trying to redirect to the Game component. Look:…
angularasked Daniel Swater 1,251 -
1
votes0
answers356
viewsQ: List the value of a Subscribe at Angular 2+
I have a component that connects with another sister component. From that, I made a service so that it is possible to make this communication. So far so good. The problem is that I can’t recover the…
-
0
votes2
answers1287
viewsQ: Recover value of a props in child component
I’m a beginner with React and I’m having a hard time recovering the value of a props, in a child component. I have a component called Search, which when clicking a button, I pass via props the value…
reactasked Daniel Swater 1,251 -
0
votes1
answer59
viewsA: Directive does not receive value
I solved the problem. The solution was to put $watch inside the directive, thus staying: app.directive('mensagem', function($timeout, $rootScope, $compile){ return { restrict: 'E', transclude: true,…
-
0
votes1
answer59
viewsQ: Directive does not receive value
I have this directive: app.directive('mensagem', function($timeout, $rootScope){ return { restrict: 'E', scope: { msg: '=' }, template: '<div ng-show="animate && msg" class="alert…
-
0
votes0
answers129
viewsQ: Time logged into the system with Laravel 4.2
Good morning. I wonder if Láravel 4.2 has any functionality that tells me how long the user was logged into the system? For example, when the user undoes, I save in the bank that time. When the user…
-
8
votes2
answers16273
viewsA: Git push permission and error 403
Problem solved. For that, I edited Github credentials on Windows. If you are on Windows 7, you can go this way: Dashboard User Accounts and Family Security Credential Manager At the end, you will…
gitanswered Daniel Swater 1,251 -
9
votes2
answers16273
viewsQ: Git push permission and error 403
I’m trying to push to my repository, but git always gives me this error: remote: Permission to danielswater/social.git denied to Michelleg-. fatal: Unable to access…
gitasked Daniel Swater 1,251 -
1
votes0
answers62
viewsQ: Gulp Concat does not work
Good morning. I am unable to concatenate the Angularjs files using the Gulp Concat module. I tried to change the directory file and it still doesn’t work. The problem is that I don’t see any error,…
-
1
votes1
answer221
viewsQ: Passport-local and Passport always returns false
I’m using Passport and Passport-local to authenticate with Nodejs, but the req.isAuthenticated method always returns me false, not even serialize when I log in. I tried to put a req.login() but then…
-
1
votes2
answers639
viewsA: Password authentication Nodejs
Problem solved. I made the following change: UsuarioSchema.method('verificaSenha', function(password, cb){ bcrypt.compare(password, this.password, function(err, isMatch){ console.log('SENHA',…
node.jsanswered Daniel Swater 1,251 -
3
votes2
answers639
viewsQ: Password authentication Nodejs
I’m starting now with Nodejs and am following a password authentication tutorial. However, I’m not being able to call the method that compares passwords. In my model, I have this structure: var…
node.jsasked Daniel Swater 1,251 -
0
votes1
answer104
viewsQ: Reactjs + Angular + Babel
Good morning I need to use Reactjs in a project that I already use Angularjs. I was able to do the integration, but without using Babel, that is, I was only able to make Angular and Reactjs…
-
0
votes0
answers33
viewsQ: Registry of controller Angularjs
I have this app and this html: https://jsfiddle.net/2r4w554g/ And I also have this controller and this html: https://jsfiddle.net/oes9vzu8/1/ When I put it to run, it points out an error that the…
-
0
votes1
answer929
viewsQ: Route to Angular home page
I have the following structure in my module https://jsfiddle.net/o0hs0uhw/ When I call the URL http://localhost/emp/dist/boffice/home, it includes the home.html view, so far so ok. The problem is…
-
4
votes2
answers505
viewsQ: Calling protected variable inside static method
<?php class Foo{ protected $calc; function __construct(){ $this->calc = 2; } public static function getCalc(){ return $this->calc * 5; } } Foo::getCalc(); When I spin, he gives me that…
-
0
votes0
answers41
viewsQ: Background does not repeat when decreasing window size
Good morning I have the following website: http://goo.gl/On8Wtx What happens is that backgrounds are not repeating themselves by decreasing the browser window. I have tried everything that is good…
-
1
votes2
answers2151
viewsQ: Publish Laravel 5 in a subfolder
I need to publish a system I made using Laravel 5 for my client, however, I only have access to FTP. I installed Laravel via Poser on my localhost, it works very well, but I do not know how to put…
laravelasked Daniel Swater 1,251 -
2
votes2
answers506
viewsQ: Autoload of Models in Laravel 5.1
Good night I wonder if in Laravel 5.1 there is a way to autoload, both in Models and Controllers? In Laravel 4 to create an instance of a Model, simply call the Model, thus: $user = new User(); But…
-
1
votes1
answer136
viewsQ: Call Laravel 4 method using Angularjs
I have the following heading structure at the angle: .when('/', { redirectTo: '/pages/signin' }) .when('/:page', { // we can enable ngAnimate and implement the fix here, but it's a bit laggy…
-
0
votes0
answers60
viewsQ: Ckeckbox tagged with Angularjs
Good afternoon I have an HTML structure mounted inside an ng-repeat that creates horizontal and vertical ckeckboxes, that is, a multidimensional array. When I click on one, I have to save in the…
angularjsasked Daniel Swater 1,251 -
2
votes2
answers694
viewsQ: ng-click Does not work with elements created dynamically
Good night I have this method $scope.register_popup = function(id, name) { for(var iii = 0; iii < popups.length; iii++) { //already registered. Bring it to front. if(id == popups[iii]) {…
-
1
votes1
answer130
viewsA: Select within a setInterval and fill an array in the nodejs
Problem solved, I just reset Time = [] after switching to socket.io
-
0
votes1
answer130
viewsQ: Select within a setInterval and fill an array in the nodejs
I am making an application that needs to be checked in the bank if there has been any change using nodejs. The application works, however, when I have more than one record in the table, it…
-
1
votes1
answer404
viewsQ: Pass Nodejs json to Angularjs
I have a server running on Nodejs using Sequelize for ORM, everything works fine, but I needed to pass the query result to the angular. My server is like this: var express = require('express'); var…
-
4
votes2
answers471
viewsQ: Display a sequence of Divs in two lines
Good evening, I have the following structure of Ivs: 1 | 2 | 3 | 4 | 5 | 6 What I need to do is that this structure looks like this: 1 | 3 | 5 2 | 4 | 6 A single detail, is that I need to do this…
-
1
votes1
answer1414
viewsQ: Show/Hide dynamic content-based table rows using Angularjs
Good morning I have several tables within a div, within these tables I show in the columns the days of the week, and in the rows several times. These times I limited to show only 8 at a time. When…
angularjsasked Daniel Swater 1,251 -
1
votes1
answer123
viewsQ: Input pasting on Radios
I’m building a form, where I have two radios inline and a input down. Only I don’t know why input is gluing us radios, leaving the form misaligned. This is the code: <section class="col…
-
5
votes2
answers17919
viewsQ: Remove and add elements depending on resolution
I wonder how I could remove a navbar a certain resolution? Example: in resolution less than 1024x768 one of navbars disappears and another navbar turns the button of toogle? This is done by Less or…
-
1
votes1
answer890
viewsQ: Error in Laravel after inserting save()
Good afternoon I am trying at all costs to make an Internet in the bank, using the Laravel and Controller, however, it does not work at all, I have tried everything that is way, migrating, changing…
-
1
votes1
answer204
viewsQ: Controllers in Cakephp Subfolders
Would you like to know how I can put controllers in subfolders in Cake? I made the following change in bootstrap.php but it didn’t work: App::build(array( 'Controller' => array( ROOT .…
-
3
votes2
answers130
viewsQ: Bxslider plugin does not show thumbnail
I’m using the Bxslider plugin to make a carousel with thumbnails, only I’ve tried everything and the thumbnails do not appear on any list. The images come from the database, but even swapped the…
-
1
votes1
answer80
viewsQ: Protect pages that are loaded inside the template - Kohana
I’m doing an admin here who blows their pages. I know how to allow them to be accessed only after login, but I don’t know if the way I’m doing it is the right way. Look at the Template: class…
-
5
votes1
answer1599
viewsA: Return to the previous screen after registering using Kohana
Problem solved. I put that code into action: HTTP::redirect('admin/detailClient/'.$this->request->post('codCliente'));
-
3
votes1
answer1599
viewsQ: Return to the previous screen after registering using Kohana
I have a screen where I receive a parameter (id) and from it I mount a form. After saving this form I need to go back to the previous screen to display what was saved. How can I do this? I’ve tried…
-
2
votes1
answer59
viewsQ: Pass two arrays to a view in Kohana
I need to pass two arrays to a view, it is possible to do this? Arrays are created as follows: $cliente = ORM::factory('cliente')->where('id', '=', $id)->find(); $usuario =…
-
2
votes1
answer798
viewsQ: Cakephp Auth Component Does Not Work Properly
I am making a user registration screen. When the user completes the registration, it is redirected to a restricted area. On this same screen, there is a login and password field for them to log in.…
-
1
votes1
answer1118
viewsA: After registration, redirect to another Cakephp layout
I solved the problem, created the Users folder inside the view with the index.ctp file Thanks for the tip
-
1
votes1
answer1118
viewsQ: After registration, redirect to another Cakephp layout
I have a layout for the home page of my project, with only a registration form and nothing else. After the person signs up, they are redirected to another page, completely different from the home…
-
1
votes1
answer91
viewsQ: Count results from a select in Kohana
Would you like to know how I count the results of a select in Kohana? I have this code: public function action_verification() { $login = $this->request->post('login'); $senha =…
-
2
votes1
answer179
viewsQ: After doing Insert, redirect to the list of records in Kohana
I started working with Kohana yesterday and I got a problem here. My default Controller is the "page" and the action is "home". In the "page" Controller I have these functions here to mount the…
-
6
votes3
answers2397
viewsQ: jQuery autocomplete shows no options
Description Need: I need to make an autocomplete with jQuery, PHP and from what was selected, caught the ID, I make a query in the database and display what I need. Problem: I’m having trouble…