Live Chat Icon For mobile
Live Chat Icon
Popular Categories.NET  (151).NET Core  (25)Angular  (49)ASP.NET  (48)ASP.NET Core  (64)ASP.NET MVC  (86)Azure  (28)Blazor  (96)DocIO  (20)Essential JS 2  (71)Essential Studio  (163)File Formats  (20)Flutter  (109)JavaScript  (148)Microsoft  (101)PDF  (59)React  (33)Succinctly series  (122)Syncfusion  (479)TypeScript  (30)Uno Platform  (3)UWP  (4)Vue  (26)Webinar  (25)Windows Forms  (55)WinUI  (20)WPF  (121)Xamarin  (130)XlsIO  (24)Other CategoriesBarcode  (4)BI  (29)Bold BI  (3)Build conference  (6)Business intelligence  (53)Button  (4)C#  (107)Chart  (50)Cloud  (9)Company  (445)Dashboard  (6)Data Science  (3)Data Validation  (5)DataGrid  (47)Development  (257)Doc  (7)DockingManager  (1)eBook  (93)Enterprise  (22)Entity Framework  (5)Essential Tools  (14)Excel  (20)Extensions  (13)File Manager  (4)Gantt  (9)Gauge  (6)Git  (4)Grid  (27)HTML  (9)Installer  (2)Knockout  (2)LINQPad  (1)Linux  (2)M-Commerce  (1)Metro Studio  (11)Mobile  (225)Mobile MVC  (9)OLAP server  (1)Open source  (1)Orubase  (12)Partners  (21)PDF viewer  (22)Performance  (6)PHP  (1)PivotGrid  (4)Predictive Analytics  (6)Report Server  (3)Reporting  (10)Reporting / Back Office  (11)Rich Text Editor  (5)Road Map  (9)Scheduler  (26)SfDataGrid  (9)Silverlight  (21)Sneak Peek  (19)Solution Services  (2)Spreadsheet  (9)SQL  (7)Stock Chart  (1)Surface  (4)Tablets  (5)Theme  (11)Tips and Tricks  (59)UI  (128)Uncategorized  (68)Unix  (2)User interface  (68)Visual State Manager  (1)Visual Studio  (19)Visual Studio Code  (11)Web  (212)What's new  (138)Windows 8  (19)Windows App  (1)Windows Phone  (15)Windows Phone 7  (9)WinRT  (26)
Share on twitter
Share on facebook
Share on linkedin
Introducing Syncfusion Angular Code Snippets for Visual Studio Code

Introducing Syncfusion Angular Code Snippets for Visual Studio Code

We are glad to introduce Angular Snippets, a utility for adding Syncfusion Angular components in the HTML file of an Angular application. This utility is available in our 2021 Volume 3 release. This code snippet utility saves significant time for developers in adding Syncfusion Angular components to their projects.

In this blog, I am going to explain how to use the new code snippet utility to add Syncfusion Angular components to your applications.

Prerequisites

Install Syncfusion Angular Snippets

The Syncfusion Angular Snippets utility is included as part of Syncfusion Web VS Code extensions.

Installing from Visual Studio Marketplace

To install the Syncfusion web VS Code extensions from Visual Studio Marketplace, follow these steps:

  1. Open Visual Studio Code.
  2. Then, navigate to View > Command Palette.
  3. Search for Install Extensions in the Command Palette and expand it when it appears.
  4. Search for Syncfusion Web in the search box to locate the Syncfusion Web VS Code Extension package.
  5. Then, install the Syncfusion Angular extension.

Installing from a VSIX package

To install the Syncfusion web VS Code extensions from a VSIX package, follow these steps:

  1. First, download the Syncfusion web VS Code extensions from the Visual Studio Marketplace.
  2. Then, open Visual Studio Code.
  3. Navigate to View > Command Palette.
  4. Search for Install, and then click Install from VSIX in the Command Palette.
  5. Finally, select the Syncfusion web VS Code extension from the Browse options. The extension will be installed.

Adding Syncfusion Angular components using the code snippet utility

Now, follow these steps to add a Syncfusion Angular component to an Angular app using the code snippet utility:

  1. Open an existing Angular app or create a new one in Visual Studio Code.
  2. Then, open the required HTML file.
  3. Now, start typing in the name of a Syncfusion Angular component, which will begin with ejs. As you type in the name, you will see a list of components along with their features in the following format:ejs-<Syncfusion component name>-<Syncfusion component feature>For example: ejs-grid-grouping.Choose a Syncfusion component-feature pair and press Enter or the Tab key. The Syncfusion Angular component, along with the code to use the feature, will be added to the .html file.
    Adding Syncfusion Angular components using the code snippet utility
  1. After adding the Syncfusion Angular component code to the HTML file, use the tab key to fill the required values to render the component. The help link at the top of the added code snippet will take you to the documentation page to learn more about the added component feature.
    Use the help link to learn more about the Angular components

Configure the Angular application

The Syncfusion Angular code snippet utility only adds the code snippet to the HTML file. So, we need to install the required Syncfusion NPM packages and add component modules and themes to use the component. To do so, follow these steps:

  1. Open the Angular package.json file and manually add the required Syncfusion Angular individual NPM package(s) for the Syncfusion Angular components.
  2. Then, in the command prompt, navigate to the packages.json file location and run the npm install command to restore all the Syncfusion Angular NPM packages.
    Syncfusion Angular components added in the pacakge.json file
  3. Then, open your module file and add the required Angular component module entries to render the Syncfusion components in your app.
    Add the required Angular component(s) module entries
  4. Now, add the Syncfusion Angular theme entry in the style.css file.
    Add the Syncfusion Angular theme entry in the style.css file
  5. Finally, run the application to see the Syncfusion Angular components.

Conclusion

Thanks for reading! I hope this blog helps you use our code snippet utility to add Syncfusion Angular components to your Angular app in less time. This utility is available in our 2021 Volume 3 release. See details in our Release Notes and What’s New pages.

The Syncfusion Angular UI components library is the only suite that you will ever need to build an application. It contains over 65 high-performance, lightweight, modular, and responsive UI components in a single package. Try them out and build elite web applications!

If you have any questions, please let us know in the comments section below. You can also contact us through our support forum, Direct-Trac, or feedback portal. We are always happy to assist you!

Related blogs

Tags:

Share this post:

Share on twitter
Share on facebook
Share on linkedin

Comments (1)

Ivan Marrero Vera

This is great. Thank you!
In future, adding all the non HTML plumbing automatically would be awesome

Comments are closed.

Popular Now

Be the first to get updates

Subscribe RSS feed
Scroll To Top