Sharing Top Content from the Angular-sphere.
Browsing Tag

ElementRef

Angular Security Best Practices

When a value is inserted into the DOM from a template, via property, attribute, style, class binding, or interpolation, Angular sanitizes and escapes untrusted values.Users can bypass security by constructing a value with one of the methods, and then binding to that value from the template.Content…
Read More...

Unusual Combination of Angular and PHP

Having PHP handle the HTML code would mean that the Javascript side of Angular has limited interactivity with the template side which takes away the major advantages of Angular 2 of binding events to elements.Angular 2 has a feature…

Unusual Combination of Angular and PHP

Having PHP handle the HTML code would mean that the Javascript side of Angular has limited interactivity with the template side which takes away the major advantages of Angular 2 of binding events to elements.Angular 2 has a feature…

How to use Angular with jQuery?

If you are using TypeScript you could first reference jQuery typescript are not required since you could just use   as the type for   or In your angular component you should reference a DOM element from the template using   After the…

Differences between Promise and Observable in Angular

An   is like a   (in many languages) and allows to pass zero or more events where the callback is called for each event.With   it doesn't matter if you want to handle 0, 1, or multiple events.If the result of an HTTP request to a server or…

10 Ways to Misuse Angular

import { Component } from selector: 'my-card', template: ` h1 class="card-title"{{ title }}/h1 p class="card-body" ng-content/ng-content /p ` }) export class CardComponent { title = 'Title of card'; } We can style the…

Gerard Sans « DevFest DC May 5-6, 2017

In this talk we want to cover the different options available when styling Angular Components and Directives.We will introduce Angular Encapsulation Modes.After this talk you will be comfortable using a modular CSS component based styling…