Skip to content

Instantly share code, notes, and snippets.

View manoharlk's full-sized avatar

Manohar manoharlk

  • Hyderabad, India
View GitHub Profile
<html>
<head>
<script type="text/javascript">
function callit() {
var fname = document.getElementById("1").value;
var lname = document.getElementById("2").value;
var age = document.getElementById("4").value;
var nationality = document.getElementById("3").value;

Appointy Style Guide for Angular

Naming Guidelines

  • All files are named in lower-hyphen-case

  • Component and directive files should be prefixed with module name and end with .component before file extension marketing-gift-certificate-list.component.ts marketing-gift-certificate-list.component.html

@manoharlk
manoharlk / appointy.md
Last active December 3, 2016 09:05
NG2

Adding and removing classes in angular

  • directly binding with [style.background-color]
  • adding a class [class.my-class]
  • using NgClass [ngClass]
  • by directly accessing the native DOM element