Giter Site home page Giter Site logo

Comments (7)

ncuillery avatar ncuillery commented on May 26, 2024

Hi,

I tend to think this issue to related to the encoding of your editor. Is your file containing the UI-router configuration encoded in UTF-8 (or an other encoding corresponding to the <meta charset> in the index.html) ?

from angular-breadcrumb.

napcat avatar napcat commented on May 26, 2024

Hi ncuillery.

Yes I have the charset specified on my index.html file.

Any other ideas?

from angular-breadcrumb.

ncuillery avatar ncuillery commented on May 26, 2024

What's happened if you referenced a string defined in the $rootScope:

Example:

In the same file where you have defined your states:

[YOUR_MODULE].run(function(rootScope) {
  $rootScope.dummyString = 'notícia';
});

and somewhere in your index.html:

{{dummyString}}

Is it well encoded ?

from angular-breadcrumb.

napcat avatar napcat commented on May 26, 2024

Ok, I did what you said... and also added a "noticia" prop inside the model to make another test

module.controller("NewsDetailsController", ["$scope", "$stateParams", "NewsDetailsService",
function ($scope, $stateParams, NewsDetailsService)
{
        NewsDetailsService.GetAsyncData().then(function (result)
        {
            $scope.data = result;
            $scope.data.noticia = "notícia";
        });
}]);

and binded it on the view:

{{"noticia: " + data.noticia}}</h4>

And the result was this:

noticiachar

In your test the problem was positive.
On my test it was negative.

Shouldn't both be the same?

from angular-breadcrumb.

ncuillery avatar ncuillery commented on May 26, 2024

Are your test and my test in the same .js file ?

If not, please check the encoding of them, it musts be the same.

from angular-breadcrumb.

napcat avatar napcat commented on May 26, 2024

Oh god... why... facepalm

I'm so sorry to be bothering you with this.

I recheck all my js files... Don't know why, but only my MainApp.js was encoded in ANSI.
Changed to UTF8 and it is working!

Thank you, for making me realize this. =)

from angular-breadcrumb.

ncuillery avatar ncuillery commented on May 26, 2024

It can happen to the best of us ;)

from angular-breadcrumb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.