ng serve open | ng s -o //Opening server in localhost angular ng generate component component-name | ng g c component-name //create a new component *ng //always add asterisks at the beginning [class.some-css-class] //class binding, add and remove a CSS class conditionally ng generate service hero //share information among classes that don't know each other
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter