Hi all, i'm new in this group, first thanks for all.

I want to get the environments variables locally in 
: App\src\environments\environment.dev.ts
i have set the data in : App\.angular-cli.json

"environments": {
      "dev": "environments/environment.dev.ts",
      "prod": "environments/environment.prod.ts"
    }

and load the server cli with : ng serve -e dev

in my component i have the code :

import { Component, OnInit } from '@angular/core';
import { environment } from '../../../../../environments/environment';

@Component({
  selector: 'header-social',
  templateUrl: './social.component.html',
  styleUrls: ['./social.component.css']
})
export class SocialComponent implements OnInit {


  constructor(private env:enviroment) {
      console.log(this.env);
 }

  ngOnInit() {
  }

}


and this output :Cannot find the name enviroment in social.component.ts

??????


-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to