Etiqueta: angularjs

Stateless PSR-7 CSRF (Cross-Site Request Forgery) protection middleware – simple Slim Framework 3 integration.

Stateless PSR-7 CSRF (Cross-Site Request Forgery) protection middleware – simple Slim Framework 3 integration. README Stateless PSR-7 CSRF (Cross-Site Request Forgery) protection middleware 馃攺 Install $ composer require schnittstabil/psr7-csrf-middleware Usage <?php require __DIR__.'/vendor/autoload.php'; use SchnittstabilPsr7CsrfMiddlewareBuilder as CsrfMiddlewareBuilder; /* * Shared secret...

Yii2 angular extension

Yii2 angular extension README Yii2 angular extension Installation The preferred way to install this extension is through composer. Either run php composer.phar require deesoft/yii2-angular "~1.0" or add "deesoft/yii2-angular": "~1.0" to the require section of your composer.json file. Usage In view file...

Usar controlador sin $scope – javascript angularjs angularjs-scope

Pregunta: angular.module('App') .config(function ($stateProvider) { $stateProvider .state('solicitud', { url: 'solicitud', controller: 'SolCtrl as sol', templateUrl: '/scripts/app/estados/solicitud/solicitud.html' }) }); angular.module('App').controller('SolCtrl', solCtrl); function solCtrl($http, $scope) { var solicitud = this; solicitud.name = 'Solicitud //ABANCA'; function respuestaCtrl() { this.solicitud = function () { alert('funciona');...