Comments (2)
django-angular uses Django's Form framework and thus all the default Widget classes available there. Thus its quite difficult to add Angular directives in list form rather than dict form.
But please try out the following: Do it like the HTML specs suggests, add
attrs={'my-directive': 'my-directive'}
to your Field's Widget. I assume that AngularJS will just ignore the value part of that attrs.
from django-angular.
Yes, that does work.
from django-angular.
Related Issues (20)
- Please test upcoming version of django-angular 2.0 HOT 12
- Issue in Client-Side Form Validation HOT 3
- ChoiceFieldRenderer not available in Django 2.x HOT 2
- Django 2.x - No module named 'django.core.urlresolvers' HOT 5
- 'unicode' object has no attribute 'url' HOT 3
- Ajax Validation unique fields. HOT 2
- Ajax Validation ImageField. Possibly bug? HOT 1
- Client side error, rmi-function is not a function HOT 1
- Automatically generated form names broken in Python 3 HOT 4
- Trouble integrating into django-cookiecutter project HOT 3
- How to create nested formsets
- angular.js:68 Uncaught Error: [$injector:modulerr] Failed to instantiate module djangular-demo due to: HOT 2
- How to create new django-project?
- Dockerfile references a non existent image HOT 1
- AngularJS client form validation ignores model RegexValidator HOT 2
- Override Minimum Length Error Message CharField Forms
- from dJango.http import HttpResponse ModuleNotFoundError: No module named 'dJango'
- Django 3.0 Error: ImportError raised when trying to load 'djng.templatetags.djng_tags': cannot import name 'six' HOT 4
- module 'django.forms.forms' has no attribute 'BoundField' HOT 10
- Tag 2.3.1 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-angular.