Visit my blog or connect with me on Twitter
git init
or
{ | |
"id": { | |
// id from mongo | |
"$oid": "1d123fjfad" | |
}, | |
"billnumber": String, | |
"billdate": String, | |
"billtitle": String, | |
"congress": String, | |
"session": String, |
import { Pipe, PipeTransform } from '@angular/core'; | |
import { DomSanitizer, SafeHtml } from "@angular/platform-browser"; | |
@Pipe({ | |
name: 'safeHtml' | |
}) | |
export class SafeHtmlPipe implements PipeTransform { | |
constructor(private _sanitizer:DomSanitizer) {} |
app.factory('ArrayService', function(){ | |
return { | |
deleteElement: function(array, element) { | |
var index = array.indexOf(element); | |
if(index == -1){ | |
return false; | |
} | |
array.splice(index, 1); |
Visit my blog or connect with me on Twitter
git init
or