Para evitar que chrome sugiera el autocomplete de nuestros campos
- Agregar autocomplete="string" donde string es cualquier cosa que no sea off en la etiqueta form quedando por ejemplo:
<form autocomplete="bla_bla_bla">
Remember to change the passH variable to a diffrent one in each input you place in the dom within the same scope. Using the name/id + and H ( as in Hide xD ) is usally a good idea to avoid repeating.
<mat-form-field>
<input [type]="!passH ? 'password' : 'text'" matInput placeholder="A new Password" [(ngModel)]="pass" name="pass">
<div matSuffix (click)="passH = !passH"><i class="fas fa-{{!passH ? 'eye-slash' : 'eye'}} "></i></div>
Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15);
Some of the regex are for specific use, add as many as you want for exceptcions, but any generic HTML string will be parsed perfectly.
str=str.replace(/{\s*\/*.+?}/ig, "");
str=str.replace(/<\s*br\/*>/gi, "\n");
str=str.replace(/<\s*a.*href="(.*?)".*>(.*?)<\/a>/gi, " $2 (Link->$1) ");
str=str.replace(/<\s*\/*.+?>/ig, "\n");
str=str.replace(/ {2,}/gi, " ");
str=str.replace(/\n+\s*/gi, "\n\n");
Declare it
private obs = new Subject<string>();
public _obs = this.obs.asObservable();
it is public so you can subscribe to it from any other component
Use it any where within the class
When an object has more objects inside, Object.Assign
doesn't do the trick.
The easist way to do it:
var originalObject = {
p: new Date(),
a: 123,
otherObj: {
m: 'more data',
# ALEX: WE NEED TO HAVE THE DIRCOLORS FILE - NOT SURE IF THIS COMES AS DEFAULT ON UBUNTU - GOOGLE DIRCOLORS...
# I DID A BACKUP OF MY DIRCOLORS IN GIST
# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls --color=auto'
#alias dir='dir --color=auto'
# Exact Solarized Dark color theme for the color GNU ls utility.
# Designed for dircolors (GNU coreutils) 5.97
#
# This simple theme was simultaneously designed for these terminal color schemes:
# - Solarized dark (best)
# - Solarized light
# - default dark
# - default light
# with a slight optimization for Solarized Dark.
#BASE IN AVIT.... BY LAEX
# PROMPT='
# $(_user_host)${_current_dir} $(git_prompt_info)
# %{$fg[$CARETCOLOR]%}▶%{$resetcolor%} '
PROMPT='
$(_user_host)${_current_dir} $(git_prompt_info)
%{$fg[$CARETCOLOR]%} $CARET%{$resetcolor%} '