![]() ![]() ![]() Thus, the generated code offers two css classes that can be overridden : In addition to the style attribute, ngx-avatar style can be customized using css classes. import AvatarModule in your app with your own configuration Once you have installed ngx-avatar, you can import it in your AppModule: import from avatarConfig = new AvatarConfig([ 'red', 'blue', [ ![]() Install avatar component using Yarn: $ yarn add ngx-avatar If you enjoy watching videos, check out this tutorial on medium which explains how to use ngx-avatar in your angular application.Ĭheck out this link to play with ngx-avatar □ Installation The fallback system uses the same order as the above source list, Facebook has the highest priority, if it fails, google source will be used, and so on. Moreover, the component can shows name initials or simple value as avatar. In this case the fallback system will fetch the first valid avatar. You can use this component whether you have a single source or a multiple avatar sources. The component has a fallback system that if for example an invalid Facebook ID is used it will try google ID and so on. A universal avatar component for Angular applications that fetches / generates avatar based on the information you have about the user. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |