Git Product home page Git Product logo

Comments (5)

vinaygopinath avatar vinaygopinath commented on May 18, 2024

A bit hacky, but this can be done at the moment by setting titleSuffix to a blank string ' '.

In the route/state definition

meta: {
  titleSuffix: ' '
}

Programmatically

ngMeta.setTitle('Page title', ' ');
//if the title is already defined in the state
//ngMeta.setTitle($state.current.meta.title, ' ');

I can improve this to support titleSuffix: '' (empty string) in the state definition, and ngMeta.setTitle('title', '') (Skipping the second argument would lead to the default titleSuffix being used)

Thanks :)

from ngmeta.

vinaygopinath avatar vinaygopinath commented on May 18, 2024

This is now available in v0.3.2. To override a default titleSuffix defined in the config, add

meta: {
  titleSuffix: ''
}

or use

ngMeta.setTitle('Page title', '');

from ngmeta.

skroonenburg avatar skroonenburg commented on May 18, 2024

Sorry for the delay in replying -- this is awesome. Thanks for fixing this so quickly!!! We've upgraded & it works a treat.

We're using ngMeta for our AWS certification online learning platform, if you are interested in who is using your module :-)

from ngmeta.

vinaygopinath avatar vinaygopinath commented on May 18, 2024

Thanks for linking to your site. I've been meaning to list some sites using the ngMeta module in the README, and I'd like to start with yours. Is that okay?

Off-topic, but I'm curious why your site uses ng-if="ngMeta['tagname']" on the meta elements. Was that found to be necessary?

from ngmeta.

skroonenburg avatar skroonenburg commented on May 18, 2024

Yes, that's absolutely fine, can you make it a link to our site? (links
help our SEO!! :-) )

I included the ng-if because some of our pages include particular tags, and
some others don't. We use meta tags so that social media sites can make
rich snippets of our pages... So sometimes we include og:image etc for
Facebook ... It was causing Facebook's debugger to have issues if we had
facebook specific fields there that were empty.

On Thu, Mar 10, 2016 at 9:42 PM, Vinay Gopinath [email protected]
wrote:

Thanks for linking to your site. I've been meaning to list some sites
using the ngMeta module in the README, and I'd like to start with yours. Is
that okay?

Off-topic, but I'm curious why your site uses ng-if="ngMeta['tagname']"
on the meta elements. Was that found to be necessary?


Reply to this email directly or view it on GitHub
#4 (comment).

from ngmeta.

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.