@@ -40,7 +40,7 @@ export class IgxAvatarComponent implements OnInit, AfterViewInit {
40
40
41
41
42
42
/**
43
- * This is a reference to the avatar image element in the DOM.
43
+ * This is a reference to the avatar ` image` element in the DOM.
44
44
*
45
45
* ```typescript
46
46
* let image = this.avatar.image;
@@ -68,7 +68,7 @@ export class IgxAvatarComponent implements OnInit, AfterViewInit {
68
68
@ViewChild ( 'iconTemplate' , { read : TemplateRef } )
69
69
protected iconTemplate : TemplateRef < any > ;
70
70
/**
71
- * Returns the aria-label of the avatar.
71
+ * Returns the ` aria-label` of the avatar.
72
72
*
73
73
* ```typescript
74
74
* let ariaLabel = this.avatar.ariaLabel;
@@ -78,7 +78,7 @@ export class IgxAvatarComponent implements OnInit, AfterViewInit {
78
78
@HostBinding ( 'attr.aria-label' )
79
79
public ariaLabel = 'avatar' ;
80
80
/**
81
- * Returns the role attribute of the avatar.
81
+ * Returns the ` role` attribute of the avatar.
82
82
*
83
83
* ```typescript
84
84
* let avatarRole = this.avatar.role;
@@ -101,7 +101,7 @@ export class IgxAvatarComponent implements OnInit, AfterViewInit {
101
101
public cssClass = 'igx-avatar' ;
102
102
/**
103
103
* Returns the type of the avatar.
104
- * The avatar can be: "initials type avatar", "icon type avatar" or "image type avatar".
104
+ * The avatar can be: ` "initials type avatar"`, ` "icon type avatar"` or ` "image type avatar"` .
105
105
*
106
106
* ```typescript
107
107
* let avatarDescription = this.avatar.roleDescription;
@@ -117,7 +117,7 @@ export class IgxAvatarComponent implements OnInit, AfterViewInit {
117
117
private _size : string | Size = 'small' ;
118
118
119
119
/**
120
- * Sets the id of the avatar. If not set, the first avatar component will have id = "igx-avatar-0".
120
+ * Sets the `id` of the avatar. If not set, the first avatar component will have `id` = ` "igx-avatar-0"` .
121
121
*
122
122
* ```html
123
123
* <igx-avatar id="my-first-avatar"></igx-avatar>
@@ -129,7 +129,7 @@ export class IgxAvatarComponent implements OnInit, AfterViewInit {
129
129
@Input ( )
130
130
public id = `igx-avatar-${ NEXT_ID ++ } ` ;
131
131
/**
132
- * Sets a round shape to the avatar if " roundShape" is true.
132
+ * Sets a round shape to the avatar if ` roundShape` is `" true"` .
133
133
* By default the shape of the avatar is a square.
134
134
*
135
135
* ```html
@@ -143,7 +143,7 @@ export class IgxAvatarComponent implements OnInit, AfterViewInit {
143
143
public roundShape = false ;
144
144
145
145
/**
146
- * Sets the avatar's initials/ icon color.
146
+ * Sets the avatar's ` initials`/` icon` color.
147
147
*
148
148
*```html
149
149
*<igx-avatar color="blue"></igx-avatar>
@@ -167,7 +167,7 @@ export class IgxAvatarComponent implements OnInit, AfterViewInit {
167
167
public bgColor : string ;
168
168
169
169
/**
170
- * Sets initials to the avatar.
170
+ * Sets ` initials` to the avatar.
171
171
*
172
172
* ```html
173
173
* <igx-avatar initials="MN"></igx-avatar>
@@ -179,7 +179,7 @@ export class IgxAvatarComponent implements OnInit, AfterViewInit {
179
179
public initials : string ;
180
180
181
181
/**
182
- * Sets an icon to the avatar. All icons from the material icon set are supported.
182
+ * Sets an ` icon` to the avatar. All icons from the material icon set are supported.
183
183
*
184
184
* ```html
185
185
* <igx-avatar icon="phone"></igx-avatar>
@@ -191,7 +191,7 @@ export class IgxAvatarComponent implements OnInit, AfterViewInit {
191
191
public icon : string ;
192
192
193
193
/**
194
- * Sets the image source of the avatar.
194
+ * Sets the ` image` source of the avatar.
195
195
*
196
196
* ```html
197
197
* <igx-avatar src="images/picture.jpg"></igx-avatar>
@@ -203,7 +203,7 @@ export class IgxAvatarComponent implements OnInit, AfterViewInit {
203
203
public src : string ;
204
204
205
205
/**
206
- * Returns the size of the avatar.
206
+ * Returns the ` size` of the avatar.
207
207
*
208
208
* ```typescript
209
209
*let avatarSize = this.avatar.size;
@@ -217,8 +217,8 @@ export class IgxAvatarComponent implements OnInit, AfterViewInit {
217
217
}
218
218
219
219
/**
220
- * Sets the size of the avatar.
221
- * By default the size is "small". It can be set to "medium" or "large".
220
+ * Sets the ` size` of the avatar.
221
+ * By default the ` size` is ` "small"` . It can be set to ` "medium"` or ` "large"` .
222
222
*
223
223
* ```
224
224
* <igx-avatar size="large"></igx-avatar>
@@ -288,7 +288,7 @@ export class IgxAvatarComponent implements OnInit, AfterViewInit {
288
288
}
289
289
290
290
/**
291
- * Returns the url of the image.
291
+ * Returns the url of the ` image` .
292
292
*
293
293
* ```typescript
294
294
* let imageSourceUrl = this.avatar.getSrcUrl();
@@ -300,7 +300,9 @@ export class IgxAvatarComponent implements OnInit, AfterViewInit {
300
300
return `url(${ this . src } )` ;
301
301
}
302
302
}
303
-
303
+ /**
304
+ * The `IgxAvatarModule` provides the {@link IgxAvatarComponent} inside your application.
305
+ */
304
306
@NgModule ( {
305
307
declarations : [ IgxAvatarComponent ] ,
306
308
exports : [ IgxAvatarComponent ] ,
0 commit comments