As expected, you don't have added the button to your components directives:
Try:
import {Component} from 'angular2/core';
import {Button} from 'primeng/primeng';
@Component({
selector: 'my-app',
directives: [Button],
template: `
<h1>My First App</h1>
<button pButton type="button" label="Click"></button>
`
})
export class AppComponent {
text: string;
}
PrimeNg not working
-
- Posts: 82
- Joined: 21 Mar 2016, 19:42
Please replay I am waiting for the answer.
Thanks.
Thanks.
-
- Posts: 82
- Joined: 21 Mar 2016, 19:42
Perfect actually I just copy pasted from showcase samples and Directives is not included there but anyhow I am so happy now thanks.
-
- Information
-
Who is online
Users browsing this forum: No registered users and 12 guests