0

I'm a novice on this world of Ionic2 / Cordova.

I noticed that some imports have the At: @ symbol in the import directives and others don't have it. For example:

import { NavController } from 'ionic-angular';
import { DomSanitizer } from '@angular/platform-browser';

I searched a lot on Google what's the meaning of this symbol and what happens if I use it or not but didn't find a clear answer about this.

Then I have this question:

What's the meaning of the At: @ symbol on import directives?

davidesp
  • 3,743
  • 10
  • 39
  • 77
  • 2
    Possible duplicate of [Understanding npm package @-prefix: @angular/router](http://stackoverflow.com/questions/36667258/understanding-npm-package-prefix-angular-router) – David L Apr 24 '17 at 18:26

1 Answers1

1

It's literally just a part of a filename.

NPM supports "scoped" packages. A scope name always starts with an @. So things from the @angular scope are in the @angular/ directory.

eko
  • 39,722
  • 10
  • 72
  • 98
Ryan Cavanaugh
  • 209,514
  • 56
  • 272
  • 235