angular2-cli

Login with linkedin and get user information in Angular2

谁都会走 提交于 2019-12-12 02:33:31
问题 I am new to Angular2, I want to integrate linked login functionality and get the currently singed in user information for my Angular2 project. I have created App in using linkedin developer account and have Client ID and Client Secret and tried below code but it gives me error ZoneAwareError {__zone_symbol__error: Error: You must specify a valid JavaScript API Domain as part of this key's configuration. at ht……} I tried both the way for declaring api key using double quotes ( api_key:

After ng build in Angular 2 Cli application build the refresh shows 404 Error

廉价感情. 提交于 2019-12-11 05:42:17
问题 I have successfully create and run an angualr2-cli application. I also deploy the application on the apache server, For this I am using the help of angular2-cli command ng build But My application goes down ( 404 Page Not Found Error) while refreshing the child pages. Please do the following steps you will realize the problem I have mentioned. Click this link to load the web page Now Click the Job Side bar menu or any or the side bar element Then refresh the page You would able to see my

TypeError: Cannot read property 'directoryExists' of undefined

徘徊边缘 提交于 2019-12-11 05:26:30
问题 Updating my Angular 2 CLI project from 1.0.0-beta.11-webpack.2 to 1.0.0-beta.11-webpack.8 via ng init , and running ng serve results in the following error: ** NG Live Development Server is running on http://localhost:4200. ** 10% building modules 4/7 modules 3 active ...ode_modules/style-loader/addStyles.jsTypeError: Cannot read property 'directoryExists' of undefined at Object.getAutomaticTypeDirectiveNames (/home/jan/src/fm-repos/fm-ui/node_modules/typescript/lib/typescript.js:43865:17) at

Angular 2 / Angular 2 CLI / lodash functions not found

无人久伴 提交于 2019-12-11 01:56:27
问题 We are getting the error with angular-cli beta 18 Error: Uncaught (in promise): TypeError: __WEBPACK_IMPORTED_MODULE_6_lodash__.find is not a function Lodash + Types were added to the package.json: - "lodash": "4.14", "@types/lodash": "4.14.38", In the scripts section of angular-cli.json we have a reference to the module "../node_modules/lodash/lodash.js", We are importing lodash using: - import * as _ from 'lodash'; The compiled scripts.bundle.js has the lodash javascript included. Is there

Cannot find module './models/config'

点点圈 提交于 2019-12-07 11:05:19
问题 Updating my Angular 2 CLI project from 1.0.0-beta.11-webpack.2 to 1.0.0-beta.11-webpack.8 according to instructions: npm uninstall -g angular-cli npm cache clean npm install -g angular-cli@webpack resulted in this: jan@linux-zd16:~/src/fm-repos/fm-ui> ng --version Cannot find module './models/config' Error: Cannot find module './models/config' at Function.Module._resolveFilename (module.js:455:15) at Function.Module._load (module.js:403:25) at Module.require (module.js:483:17) at require

Angular2: Dependencies Between Apps created with angular-cli

独自空忆成欢 提交于 2019-12-07 02:55:28
I am using the Angular2-cli to create two applications: MyFirstApp & MySecondApp . I whish MySecondApp to import MyFirstApp so I can reuse directive/service/component. When I import MyFirstApp , I have the following compilation error: Cannot find module 'MyFirstApp' . Here's how to reproduce : $ npm -v 3.9.3 $ node -v v6.2.1 $ npm list | grep 'angular' ├── @angular/common@2.0.0-rc.1 ├── @angular/compiler@2.0.0-rc.1 ├── @angular/core@2.0.0-rc.1 ├── @angular/http@2.0.0-rc.1 ├── @angular/platform-browser@2.0.0-rc.1 ├── @angular/platform-browser-dynamic@2.0.0-rc.1 ├── @angular/router@2.0.0-rc.1 ├─

Angular 2 cli integration in visual studio 2015

ぃ、小莉子 提交于 2019-12-05 20:16:21
问题 I am trying to create an angular 2 application in visual studio 2015 using angular2 cli setup. I have done the following steps to setup the project Execute the following command that installs the cli npm i -g angular-cli Execute the following command that creates file and folder structure ng new projectname Execute the following command that builds the project ng serve By default the angular 2 app is served on port 4200. So when I execute the http://localhost:4200 , I can see the index.html

Cannot find module './models/config'

女生的网名这么多〃 提交于 2019-12-05 15:47:42
Updating my Angular 2 CLI project from 1.0.0-beta.11-webpack.2 to 1.0.0-beta.11-webpack.8 according to instructions : npm uninstall -g angular-cli npm cache clean npm install -g angular-cli@webpack resulted in this: jan@linux-zd16:~/src/fm-repos/fm-ui> ng --version Cannot find module './models/config' Error: Cannot find module './models/config' at Function.Module._resolveFilename (module.js:455:15) at Function.Module._load (module.js:403:25) at Module.require (module.js:483:17) at require (internal/module.js:20:19) at Object.<anonymous> (/home/jan/src/fm-repos/fm-ui/node_modules/angular-cli

Configure history.pushState for Angular 2

回眸只為那壹抹淺笑 提交于 2019-12-05 01:46:22
问题 My Angular 2 application uses the default HTML 5 history.pushState location strategy. How do I configure a server with history.pushState so browser refreshes and browser URLs do not generate 404 s? For example, the Tour of Heroes application has a few different application routes like: http://localhost:8080/dashboard http://localhost:8080/heroes http://localhost:8080/detail/13 If you hit refresh on one of these routes, or type one of the URLs, you'll get 404 since /detail/13 is an application

Angular 2 cli integration in visual studio 2015

南楼画角 提交于 2019-12-04 02:45:07
I am trying to create an angular 2 application in visual studio 2015 using angular2 cli setup. I have done the following steps to setup the project Execute the following command that installs the cli npm i -g angular-cli Execute the following command that creates file and folder structure ng new projectname Execute the following command that builds the project ng serve By default the angular 2 app is served on port 4200. So when I execute the http://localhost:4200 , I can see the index.html page is served on the browser. I understand that it is served via ng server and not IIS. Please correct