Sorry for the silly question, does everyone know how to start using AngularUI? I've downloaded it from Github and read the instruction in README but still don't understand what I have to do.
|
Steps to integrate:
Most of the outlined steps are just about including JS/CSS dependencies. The only "tricky" part is to declare dependencies on a ui.* module, you can do it like this:
Once all the dependencies are included and a module configured you are ready to go. For example, using the ui-date directive is as simple as (notice the
Here is the complete jsFiddle showing how to use the ui-date directive: http://jsfiddle.net/pkozlowski_opensource/aGpNf/6/ You might also want to have a look at the sources of the http://angular-ui.github.com/ where there are live examples off all the directives. |
|||||||||||||
|
I think what is missing is plugins - you've got to add the jquery plugin scripts and css for some angular-ui directives to work. For example the codemirror directive needs:
It's a surprise to me that angular-ui.github.com doesn't mention needing to include plugins. |
|||||
|
As of 3rd of May 2013, here are the steps: include
register ui
make sure Let the magic commence. |
|||
|
Hi I wrote an article specifically on how to do this for for PHP syntax highlighting. The article is here: http://neverstopbuilding.net/how-to-integrate-codemirror-with-angular-ui/ The core of things is getting the configuration right:
For something like the following HTML snippet:
You can see the whole jsfiddle of the set up here: http://jsfiddle.net/jrobertfox/RHLfG/2/ pkozlowski.opensource is right, there are a lot more files that you need to include than it seems from the AngularUI documentation (if you can call it documentation...) Anyway I hope this is helpful to you or others. |
|||
|