This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Traits; | |
use Rhumsaa\Uuid\Uuid; | |
use Illuminate\Database\Eloquent\ModelNotFoundException; | |
/** | |
* Trait UuidModel | |
* @package App\Traits |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var app = angular.module('yourApp', []); | |
// No olvide inyectar el servicio $compile a su controlador | |
app.controller('yourCtrl', ['$scope', '$compile', function($scope, $compile) { | |
//Trae el template crudo del servidor | |
var template = "<div ng-repeat='item in items'>{{item.name}}</div>"; | |
//Por simplicidad del ejemplo vamos a insertar el template con jquery | |
$('#sucontainer').html(template); | |
//Hasta este momento lo que inserto en el DOM es inerte, | |
//Angular no conoce de su existencia. | |
//Para lograrlo tenemos que compilar el template y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
============= | |
stringmethods | |
============= | |
Make possible to use all Python string methods as Django template filters. Also | |
provide custom template tag ``{% stringmethod %}`` to use methods with more | |
than one argument, like ``format``, ``count`` and other. | |
Restrictions |