I believe you will run in to issues with CORS. Modules are loaded via Ajax,
so unless you are compiling everything in to one big JS file which is
referenced by your index.html, then it will fail (pretty sure).
Is there a reason why you do not want a server?

On Wed, Jun 1, 2016 at 3:42 PM, Mikhail A. Safronov <[email protected]
> wrote:

> thanks! but i dont want to use any server to launch,
> is it possible to just compile and launch?
>
> среда, 1 июня 2016 г., 14:04:09 UTC-5 пользователь Lucas Lacroix написал:
>>
>> The quick start guide <https://angular.io/docs/ts/latest/quickstart.html>
>> already describes using the "lite-server" npm module and live-reload.
>> The angular-cli <https://github.com/angular/angular-cli> has a similar
>> concept (might even be the same implementation).
>>
>> On Wed, Jun 1, 2016 at 3:01 PM, Mikhail A. Safronov <[email protected]>
>> wrote:
>>
>>>
>>>
>>> down votefavorite
>>> <http://stackoverflow.com/questions/37576307/how-to-launch-angular-2-application-without-any-server#>
>>>
>>> Hello!
>>>
>>> I have a simple Angular 2 project, but I dont want to use later with
>>> npm. Do u know any decision to start a project in this way:
>>>
>>>    - compile all of *.ts files
>>>    - copy compiled js-files to another folder (not related with npm or
>>>    node)
>>>    - open an app, using, for example, index.html. just open an index,
>>>    and all app should works.
>>>
>>> Thanks.
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "AngularJS" 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.
>>>
>>
>>
>>
>> --
>> Lucas Lacroix
>> Computer Scientist
>> System Technology Division, MEDITECH <http://ehr.meditech.com>
>> 781-774-2293
>>
> --
> You received this message because you are subscribed to the Google Groups
> "AngularJS" 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.
>



-- 
Lucas Lacroix
Computer Scientist
System Technology Division, MEDITECH <http://ehr.meditech.com>
781-774-2293

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" 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