Skip to content

Tool that allows you to create Angular (10+) components from HTML

License

Notifications You must be signed in to change notification settings

obenjiro/create-angular-components

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Create Angular Components

Tool that allows you to create Angular (10+) components from HTML

Install

npm install -g create-angular-components

Prepare

Add data-component attribute for every component in your markup PS: Use UpperCamelCase

   <div data-component="Test">
        <h1>Test</h1>
        <div class="inside" data-component="InnerTest">
            <span>content</span>
            <div class="inside" data-component="SubChildTest">
                <span>content</span>
            </div>
            <div class="inside" data-component="SubChildTest2">
                <span>content2</span>
            </div>
        </div>
    </div>

Use

cd example
cac index.html
# Generated 4 components, into /Users/UserName/example

About

Tool that allows you to create Angular (10+) components from HTML

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •