Comments (7)
Hi! That's a good suggestion.
Currently you can set up text-angular as you've said, due to the fact that we needed the name to work with angular's ng-form modules. BUT it doesn't create an actual input field as you've mentioned. I'll look into adding this into the 1.1.2 version that's in pre-release currently. For now you can achieve this by the following:
<text-angular ng-model="mymodel" name="hello" />
<input type="hidden" name="hello" ng-model="mymodel">
P.S. I've edited your issue description to add the backticks around your HTML code so it shows up.
from textangular.
I can't get it to work actually. So first I added the text-angular component
<text-angular ng-model="mymodel" />
In my controller I subscribed to changes of the model like this
$scope.$watch('mymodel', function() {
console.log($scope.mymodel);
});
But actually nothing happens. If I try to do this with a normal input field it works. But not with the text-angular component. Am I missing something? I use AngularJS 1.2.0 rc2.
from textangular.
Huh, by all accounts that should work!! I may not get back to a PC to have a good look into this before Monday, but things to try:
Use angular 1.2.2 (it's a stable release now)
Try use the textAngular 1.1.2-alpha build as I've done some work on the bindings to fix other issues.
If it's still not working is it possible for you to set up a jsfiddle/codepen/plunkr demo to reproduce it to help me get onto the right area when I'm able to please?
Thanks,
~Simeon
Sent from my iPhone
On 6/12/2013, at 9:28 pm, "Sam Verschueren" <[email protected]mailto:[email protected]> wrote:
I can't get it to work actually. So first I added the text-angular component
In my controller I subscribed to changes of the model like this
$scope.$watch('mymodel', function() {
console.log($scope.mymodel);
});
But actually nothing happens. If I try to do this with a normal input field it works. But not with the text-angular component. Am I missing something? I use AngularJS 1.2.0 rc2.
Reply to this email directly or view it on GitHubhttps://github.com//issues/43#issuecomment-29971481.
from textangular.
Here is the fiddle
from textangular.
Hi, Have a look at this one: http://jsfiddle.net/ZgEZr/31/
It's using the stable version of AngularJS, and current stable version of textAngular (1.1.1).
It looks like you got confused between the docs for 1.1.x+ and the 1.0.x version of textAngular.
from textangular.
Oops, shouldn't edit late at night! Original issue isn't fixed yet, just the problem mentioned after.
from textangular.
This is fixed as of v1.1.2-pre2.
from textangular.
Related Issues (20)
- Dropdown Button in Toolbar angular.
- Firefox toolbar selection issue when typing a new word HOT 1
- Toolbar bold stops working if font-weight is larger than normal (Firefox)
- Triple click error on chrome
- textAngular removes all styling when HTML is copied
- Applying Header format not working when html content copied from email HOT 1
- will remove center class while copy html from email
- while pasting external content cursor is jumping to initial position.
- Android mobile autocomplete error
- Is there any option for font-size?
- Backspace key not working
- Upgraded textangular version as1.5.16 is giving vulnerable version of angular-sanitize
- How do you configure 2 different toolbars in the same project?
- Save changes in HTML-mode HOT 1
- Security vulnerability HOT 1
- TextAngular not rendering button tag HOT 1
- Capture Ng-click event from button inside the texteditor in text-angular HOT 2
- Clicking on the validation bold/italics/underline when no text present in text box. validation is getting triggered HOT 1
- Not able to change Tooltip Text for any control of Rich-Text-Area-TextAngular
- All html tags scape from control
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 textangular.