Skip to content

Instantly share code, notes, and snippets.

@csaba-farkas
Last active September 13, 2018 18:50
Show Gist options
  • Save csaba-farkas/800dc1f96ae4d74a3e3290c3e1fe3f5d to your computer and use it in GitHub Desktop.
Save csaba-farkas/800dc1f96ae4d74a3e3290c3e1fe3f5d to your computer and use it in GitHub Desktop.
[Angular selector options] #Angular2Plus
<app-user></app-user>
<!-- <div app-user></div> -->
<!-- <div class="app-user"></div> -->
import { Component, OnInit } from '@angular/core';
@Component ({
selector: 'app-user', // component
// selector: '[app-user]', // attribute
// selector: '.app-user',
template: './user.component.html',
sytleUrls: ['./user.component.css']
})
export class UserComponent implements OnInit {
constructor { }
ngOnInit() { }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment