Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set value of json attribute in angularjs #57

Open
vivekkumar27june88 opened this issue Jul 22, 2016 · 1 comment
Open

How to set value of json attribute in angularjs #57

vivekkumar27june88 opened this issue Jul 22, 2016 · 1 comment

Comments

@vivekkumar27june88
Copy link

Hi

I am new to angularjs and web development, so this question may not be related with to json-formatter only.

Question:

How to give value to json attribute inside of ng-repeat.


            <tr ng-repeat="log in logs">
                <td>{{ $index }}</td>
                <td>{{ log.level }}</td>
                <td>{{ log.time | date:"MM/dd/yyyy 'at' h:mma"}}</td>
                <td>{{ srcFormatter(log.src.file, log.src.line) }}</td>
                <td><json-formatter  json="{{log.msg}}" open="1"></json-formatter></td>
            </tr>
@mohsen1
Copy link
Owner

mohsen1 commented Jul 22, 2016

Just pass it without interpolation :

json=’log.msg'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants