Comments (5)
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.
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.
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.
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.
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)
- Doesn't work for skype links preview HOT 2
- ngMeta it's undefined in controller HOT 3
- Incompatible with ui-router 1.0+ HOT 10
- Google won't use the meta information
- Not working with Webpack HOT 4
- ngMeta does not change title tag when placed in head HOT 1
- No substitution with grunt (angular 1.5.8) HOT 3
- Google Indexing Problem HOT 2
- google indexing does not index my description and title HOT 19
- One of my website meta tags are not initializing HOT 1
- Google search not using title, description tags HOT 2
- ngMeta is not initializing any more HOT 4
- Will this lib works for Facebook and Twitter? Or they would require server pre-caching of pages? HOT 1
- Not being able to display dynamic content HOT 1
- when i pen view source i don't see my title or description HOT 1
- How to use this with AngularJS Route? HOT 2
- WhatsApp not using ngMeta['og:description']
- README.md
- ngMeta.js:22 Uncaught TypeError: Cannot read property 'module' of undefined
- TypeError: Cannot read property 'meta' of undefined HOT 2
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 ngmeta.